
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>
23 lines
864 B
HTML
23 lines
864 B
HTML
<div class="o_languages me-3">
|
|
<div class="dropdown">
|
|
{%- if alternate_languages|length > 0 %}
|
|
<button class="btn border dropdown-toggle"
|
|
id="languages"
|
|
data-bs-toggle="dropdown">
|
|
{{ language }} {# The current language #}
|
|
</button>
|
|
{%- else %}
|
|
<button class="btn border dropdown-toggle"
|
|
id="languages"
|
|
disabled="">
|
|
{{ language }} {# The current language #}
|
|
</button>
|
|
{%- endif %}
|
|
<ul class="dropdown-menu" aria-labelledby="languages">
|
|
{%- for alternate_language, language_code, url in alternate_languages %}
|
|
<li><a class="dropdown-item" href="{{ url }}">{{ alternate_language }}</a></li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|