Fixed changes due to BS5 Classes
This commit is contained in:
parent
a334f33b35
commit
5cb7f726bc
@ -44,12 +44,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% if mailcow_locale %}
|
{% if mailcow_locale %}
|
||||||
<li class="dropdown{% if available_languages|length == 1 %}lang-link-disabled{% endif %}">
|
<li class="nav-item dropdown{% if available_languages|length == 1 %}lang-link-disabled{% endif %}">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="flag-icon flag-icon-{{ mailcow_locale[-2:] }}"></span><span class="caret"></span></a>
|
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false"><span class="flag-icon flag-icon-{{ mailcow_locale[-2:] }}"></span></a>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu "aria-labelledby="languageDropdown">
|
||||||
{% for key, val in available_languages %}
|
{% for key, val in available_languages %}
|
||||||
<li{% if mailcow_locale == key %} class="active"{% endif %}>
|
<li>
|
||||||
<a href="?{{ query_string({'lang': key}) }}">
|
<a class="dropdown-item {% if mailcow_locale == key %}active{% endif %}" href="?{{ query_string({'lang': key}) }}">
|
||||||
<span class="flag-icon flag-icon-{{ key[-2:] }}"></span>{{ val }}
|
<span class="flag-icon flag-icon-{{ key[-2:] }}"></span>{{ val }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -48,13 +48,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if not oauth2_request %}
|
{% if not oauth2_request %}
|
||||||
<button type="button" {% if available_languages|length == 1 %}disabled="true"{% endif %} class="btn btn-xs-lg btn-default pull-right dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button type="button" {% if available_languages|length == 1 %}disabled="true"{% endif %} class="btn btn-xs-lg btn-secondary ms-auto dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="flag-icon flag-icon-{{ mailcow_locale[-2:] }}"></span> <span class="caret"></span>
|
<span class="flag-icon flag-icon-{{ mailcow_locale[-2:] }}"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu ms-auto login">
|
<ul class="dropdown-menu ms-auto login">
|
||||||
{% for key, val in available_languages %}
|
{% for key, val in available_languages %}
|
||||||
<li{% if mailcow_locale == key %} class="active"{% endif %}>
|
<li>
|
||||||
<a href="?{{ query_string({'lang': key}) }}">
|
<a class="dropdown-item {% if mailcow_locale == key %}active{% endif %}" href="?{{ query_string({'lang': key}) }}">
|
||||||
<span class="flag-icon flag-icon-{{ key[-2:] }}"></span>{{ val }}
|
<span class="flag-icon flag-icon-{{ key[-2:] }}"></span>{{ val }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user