Move inline CSS to layout.css
This commit is contained in:
parent
5973612776
commit
3a0e08f3f5
6 changed files with 58 additions and 50 deletions
|
|
@ -48,22 +48,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
{% trans "Connected as" %} <code>{{ request.user.username }}</code>.
|
||||
<form action="{% url 'set_language' %}" method="post" style="max-width: 15em;">
|
||||
{% csrf_token %}
|
||||
{% trans "Select another language:" %}
|
||||
<select title="language" name="language" class="form-control form-control-sm" onchange="this.form.submit()">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_available_languages as LANGUAGES %}
|
||||
{% for lang_code, lang_name in LANGUAGES %}
|
||||
<option value="{{ lang_code }}" {% if lang_code == LANGUAGE_CODE %}selected{% endif %}>
|
||||
{{ lang_name }} ({{ lang_code }})
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<noscript><input type="submit"></noscript>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue