refact ergo + page perso (vide)
[auf_rh_dae.git] / project / templates / actions.html
CommitLineData
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 %}
a9faef67 8 <li><a href="{% url admin:index %}">Administration</a></li>
9 <li><a href="{% url django.contrib.auth.views.logout %}?next=/">Déconnexion</a></li>
10 {% else %}
11 <li><a href="{% url django.contrib.auth.views.login %}?next={{request.path}}">Connexion</a></li>
12 {% endif %}
13</ul>