[IMP] conf: show all relevant versions in the version switcher

From now on, the master branch and the latest released SaaS branch are
always shown. SaaS branches are labeled "Odoo Online".

The list of the versions shown in the switcher is hard-coded to force
their ordering.

The class `dropdown-toggle` is always added to the version|language
switcher regardless of whether other versions|languages are available,
as a quick fix to a CSS issue that occurs when the class is missing.

closes odoo/documentation#1565

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2022-02-09 09:03:32 +00:00
parent 5893edda93
commit fb469b8211
3 changed files with 43 additions and 25 deletions
@@ -7,7 +7,7 @@
{{ language }} {# The current language #}
</button>
{%- else %}
<button class="btn border"
<button class="btn border dropdown-toggle"
id="languages"
disabled="">
{{ language }} {# The current language #}
@@ -8,13 +8,13 @@
<button class="btn border dropdown-toggle"
id="versions"
data-bs-toggle="dropdown">
{{ version }} {# The current version #}
{{ version_display_name }} {# The current version #}
</button>
{%- else %}
<button class="btn border"
<button class="btn border dropdown-toggle"
id="versions"
disabled="">
{{ version }} {# The current version #}
{{ version_display_name }} {# The current version #}
</button>
{%- endif %}
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="versions">