a9faef67 |
1 | <ul> |
2 | {% if user.is_authenticated %} |
0f844142 |
3 | {% if this_employe %} |
4 | <li class="username"><a href="{% url rh_perso this_employe.id %}">{{ this_employe }}</a></li> |
5 | {% else %} |
6 | <li class="username">{{ user }}</li> |
7 | {% endif %} |
d04d084c |
8 | {% if user_is_admin or user_in_dae_groupes or user_in_recrutement_groupes %} |
9 | <li><a href="{% url admin:index %}">Administration</a></li> |
10 | {% endif %} |
a9faef67 |
11 | <li><a href="{% url django.contrib.auth.views.logout %}?next=/">Déconnexion</a></li> |
12 | {% else %} |
13 | <li><a href="{% url django.contrib.auth.views.login %}?next={{request.path}}">Connexion</a></li> |
14 | {% endif %} |
15 | </ul> |