current language removed from choices (#6537)
This commit is contained in:
parent
8f50958f55
commit
62383bf280
|
@ -10,8 +10,10 @@
|
|||
</a>
|
||||
|
||||
<ul class="dropdown-menu ">
|
||||
{% for locale in h.get_available_locales() %}
|
||||
<li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
|
||||
{% for locale in h.get_available_locales() %}
|
||||
{% if locale != current_lang %}
|
||||
<li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Reference in New Issue