mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-10 04:50:16 +02:00
using "public/lang_select.html"
This commit is contained in:
parent
4a3e807066
commit
191b238a04
@ -132,9 +132,16 @@ ul.list-group.list-group-horizontal > li.list-group-item {
|
|||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-user-menu .navbar-form {
|
.top-menu-bar-language-select form {
|
||||||
|
padding: 10px 15px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
border-top: 1px solid transparent;
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
-webkit-box-shadow: inset 0 1px 0 rgb(255 255 255), 0 1px 0 rgb(255 255 255);
|
||||||
|
box-shadow: inset 0 1px 0 rgb(255 255 255), 0 1px 0 rgb(255 255 255);
|
||||||
|
margin-top: 7.5px;
|
||||||
|
margin-bottom: 7.5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +155,17 @@ ul.list-group.list-group-horizontal > li.list-group-item {
|
|||||||
.top-user-menu {
|
.top-user-menu {
|
||||||
color: rgb(123, 138, 139);
|
color: rgb(123, 138, 139);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-menu-bar-language-select form {
|
||||||
|
width: auto;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
border: 0;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eve time in navbar
|
/* eve time in navbar
|
||||||
|
@ -38,23 +38,10 @@
|
|||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li>
|
<li class="top-menu-bar-language-select">
|
||||||
<form id="f-lang-select" class="navbar-form" action="{% url 'set_language' %}" method="post">
|
{% include 'public/lang_select.html' %}
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<select onchange="this.form.submit()" class="form-control" id="lang-select" name="language">
|
|
||||||
{% get_language_info_list for LANGUAGES as languages %}
|
|
||||||
|
|
||||||
{% for language in languages %}
|
|
||||||
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
|
|
||||||
{{ language.name_local }} ({{ language.code }})
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
|
|
||||||
<!-- night mode toggle -->
|
<!-- night mode toggle -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user