Commit 9ec26ced by Bence Dányi

webui: language options only for authenticated users

parent 621b3715
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
{% else %} {% else %}
<a href="{% url login %}">{% trans "Login" %}</a>. <a href="{% url login %}">{% trans "Login" %}</a>.
{% endif %} {% endif %}
{% if user.is_authenticated %}
{% if lang == 'hu' %} {% if lang == 'hu' %}
<a href="{% url school.views.language "en" %}">In English</a>. <a href="{% url school.views.language "en" %}">In English</a>.
{% else %} {% else %}
<a href="{% url school.views.language "hu" %}">Magyarul</a>. <a href="{% url school.views.language "hu" %}">Magyarul</a>.
{% endif %} {% endif %}
{% endif %}
</p> </p>
</div> </div>
{% endblock %} {% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment