add link to admin interface if staff user V00.04
authorymh <ymh.work@gmail.com>
Tue, 12 Jul 2011 14:46:28 +0200
changeset 94 3fa9df5ae402
parent 93 43e1e4dc4bdb
child 95 798d8a898237
add link to admin interface if staff user
web/hdabo/templates/hdabo_base.html
--- 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 %}