web/hdabo/templates/hdabo_base.html
changeset 94 3fa9df5ae402
parent 63 03698c739b1d
child 96 e8a32d48da1b
--- a/web/hdabo/templates/hdabo_base.html	Tue Jul 12 14:11:54 2011 +0200
+++ b/web/hdabo/templates/hdabo_base.html	Tue Jul 12 14:46:28 2011 +0200
@@ -58,7 +58,7 @@
     {% if user.is_authenticated %}
     <ul><li><a href="{% url hdabo.views.home %}">Home</a></li>
     <li><a href="{% url hdabo.views.all_tags %}">Tous les tags</a></li>
-    <li><span style="float:right;">{{user.username}}&nbsp;|&nbsp;<a href="{% url django.contrib.auth.views.logout_then_login %}" >Se déconnecter</a></li>
+    <li><span style="float:right;">{{user.username}}&nbsp;|&nbsp;<a href="{% url django.contrib.auth.views.logout_then_login %}" >Se déconnecter</a>{% if user.is_staff %}&nbsp;|&nbsp;<a href="{{BASE_URL}}admin" >admin</a>{% endif %}</span></li>
     </ul>
     {% endif %}
     {% endblock %}