Display draw tab only for authenticated users
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
3717cd8b3f
commit
ac039c1073
|
@ -91,11 +91,13 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if user.is_authenticated %}
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
<a class="nav-link" href="{% url 'draw:index' %}">
|
<a class="nav-link" href="{% url 'draw:index' %}">
|
||||||
<i class="fas fa-archive"></i> {% trans "Draw" %}
|
<i class="fas fa-archive"></i> {% trans "Draw" %}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
<a class="nav-link" href="{% url "participation:chat" %}">
|
<a class="nav-link" href="{% url "participation:chat" %}">
|
||||||
<i class="fas fa-comments"></i> {% trans "Chat" %}</a>
|
<i class="fas fa-comments"></i> {% trans "Chat" %}</a>
|
||||||
|
|
Loading…
Reference in New Issue