Commit 1d059599 authored by Martin Lehoux's avatar Martin Lehoux

logout is another tab + admin showed only for moderator on resp

parent 4689f9b1
......@@ -3,7 +3,7 @@
<div class="ui one column row stackable top fixed menu inverted violet computer only" id="menu">
<div class="item header">
<img class="ui mini rounded image" src="{{ user.photoPath }}" alt="Photo de {{user.firstName}}" id="user-avatar">
Bienvenue {{user.firstName}} (<a href="{% url 'core:logout' %}">se déconnecter</a>)
Bienvenue {{user.firstName}}
</div>
<a class="item {% if item == 'home' %}active{% endif %}" href="{% url 'core:home' %}">
<i class="home icon"></i> Accueil
......@@ -33,6 +33,9 @@
<i class="ui cogs icon"></i> Admin
</a>
{% endif %}
<a href="{% url 'core:logout' %}" class="item">
<i class="power off icon"></i> Se déconnecter
</a>
<div class="right menu">
<div class="header item">
......@@ -45,7 +48,7 @@
</div>
<div class="ui one column row top fixed menu inverted violet mobile tablet only">
<div class="item header">
Bienvenue {{user.firstName}} (<a href="{% url 'core:logout' %}">se déconnecter</a>)
Bienvenue {{user.firstName}}
</div>
<div class="right menu">
<div class="item">
......@@ -56,7 +59,7 @@
</div>
<div class="ui sidebar inverted violet top vertical menu">
<div class="item header">
Bienvenue {{user.firstName}} (<a href="{% url 'core:logout' %}">se déconnecter</a>)
Bienvenue {{user.firstName}}
</div>
<a class="item {% if item == 'home' %}active{% endif %}" href="{% url 'core:home' %}">
<i class="home icon"></i> Accueil
......@@ -81,9 +84,15 @@
<a class="item {% if item == 'account' %}active{% endif %}" href="{% url 'core:account' %}">
<i class="ui user icon"></i> Mon compte
</a>
<a href="/admin" class="item">
<i class="ui cogs icon"></i> Admin
</a>
{% if user.isModerator %}
<a href="/admin" class="item">
<i class="ui cogs icon"></i> Admin
</a>
{% endif %}
<a href="{% url 'core:logout' %}" class="item">
<i class="power off icon"></i> Se déconnecter
</a>
<div class="right menu">
<div class="header item">
<img src="{% static 'core/nofist.png' %}" alt="Logo de Nofist" class="ui mini image">
......
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 to comment