
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#1579
X-original-commit: fb469b8211
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
<div class="o_versions row gx-2 me-3">
|
|
<div class="col align-self-center">
|
|
<label class="fw_bold small ms-2">Version</label>
|
|
</div>
|
|
<div class="col">
|
|
<div class="dropdown">
|
|
{%- if alternate_versions|length > 0 %}
|
|
<button class="btn border dropdown-toggle"
|
|
id="versions"
|
|
data-bs-toggle="dropdown">
|
|
{{ version_display_name }} {# The current version #}
|
|
</button>
|
|
{%- else %}
|
|
<button class="btn border dropdown-toggle"
|
|
id="versions"
|
|
disabled="">
|
|
{{ version_display_name }} {# The current version #}
|
|
</button>
|
|
{%- endif %}
|
|
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="versions">
|
|
{%- for alternate_version, url in alternate_versions %}
|
|
<li><a class="dropdown-item" href="{{ url }}">{{ alternate_version }}</a></li>
|
|
{%- endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|