summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/base.html')
-rw-r--r--ishtar_common/templates/base.html36
1 files changed, 20 insertions, 16 deletions
diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html
index 0d0df59e5..60821dee6 100644
--- a/ishtar_common/templates/base.html
+++ b/ishtar_common/templates/base.html
@@ -22,23 +22,27 @@
<body>
<div id="header">
{% block header %}
- {% if user.is_authenticated %}
- {% trans "Logged in" %}: {{ user.username }}
- (<a href="{% url auth_logout %}">{% trans "Log out" %}</a> |
- <a href="{% url auth_password_change %}">{% trans "Change password" %}</a>)
- {% else %}
- <strong><a href="{% url auth_login %}">{% trans "Log in" %}</a></strong>
- {% endif %}
+ {% if user.is_authenticated %}
+ {% trans "Logged in" %}: {{ user.username }}
+ (<a href="{% url auth_logout %}">{% trans "Log out" %}</a> |
+ <a href="{% url auth_password_change %}">{% trans "Change password" %}</a>)
+ {% else %}
+ <strong><a href="{% url auth_login %}">{% trans "Log in" %}</a></strong>
+ {% endif %}
+ {% if LANGUAGES|length > 1 %}
+ <div id="language_form_div">
+ <form action="/i18n/setlang/" method="post" id='language_form'>
+ {% csrf_token %}
+ <label for='language_selector'>{% trans "Lang" %}{% trans ":"%} </label>
+ <select name="language" id='language_selector'>
+ <option value="">-------</option>
+ {% for lang in LANGUAGES %}
+ <option value="{{ lang.0 }}"{% ifequal LANGUAGE_CODE lang.0 %} selected='selected'{% endifequal %}>{{ lang.1 }}</option>
+ {% endfor %}
+ </select>
+ </form>
+ </div>{% endif %}
{% endblock %}
- {% comment %}
- <form action="/i18n/setlang/" method="post" id='language_form'>
- {% csrf_token %}
- <select name="language" id='language_selector'>
- {% for lang in LANGUAGES %}
- <option value="{{ lang.0 }}">{{ lang.1 }}</option>
- {% endfor %}
- </select>
- </form>{% endcomment %}
</div>
<div class="nav-button ui-state-default ui-corner-all" id="to_bottom_arrow">
<span class="ui-icon ui-icon-circle-arrow-s"></span>