fix flags
This commit is contained in:
parent
a5c97c4e38
commit
ae9a28fc80
|
@ -68,9 +68,6 @@ pre {
|
|||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.flag_link {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.flag_img {
|
||||
margin-top: 10px;
|
||||
width: 28px;
|
||||
|
|
|
@ -65,8 +65,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav ">
|
||||
|
||||
<li class="dropdown">
|
||||
<li class="nav-item dropdown">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
<a class="nav-link" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<img class="flag_img" src="{% static "img/"|add:LANGUAGE_CODE|add:".svg" %}" alt="flag {{ LANGUAGE_CODE }}"/>
|
||||
|
@ -75,7 +74,7 @@
|
|||
{% get_available_languages as languages %}
|
||||
{% for lang_code, lang_name in languages %}
|
||||
|
||||
<a class="flag_link dropdown-item" href="{% url 'set_language' lang_code %}?next={{request.path|slice:"3:"}}">
|
||||
<a class="dropdown-item" href="{% url 'set_language' lang_code %}?next={{request.path|slice:"3:"}}">
|
||||
<img class="flag_img" src="{% static "img/"|add:lang_code|add:".svg" %}" alt="flag {{ lang_name }}"/>
|
||||
</a>
|
||||
|
||||
|
|
Loading…
Reference in New Issue