Commit 9ec26ced by Bence Dányi

webui: language options only for authenticated users

parent 621b3715
......@@ -35,11 +35,13 @@
{% else %}
<a href="{% url login %}">{% trans "Login" %}</a>.
{% endif %}
{% if user.is_authenticated %}
{% if lang == 'hu' %}
<a href="{% url school.views.language "en" %}">In English</a>.
{% else %}
<a href="{% url school.views.language "hu" %}">Magyarul</a>.
{% endif %}
{% endif %}
</p>
</div>
{% 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