added link to admin page #2
authorverrierj
Thu, 25 Aug 2011 12:40:27 +0200
changeset 153 0416423c0de6
parent 152 f50ce75cdd0b
child 154 2f83bcf58cc1
added link to admin page #2
src/ldt/ldt/locale/fr/LC_MESSAGES/django.po
src/ldt/ldt/templates/ldt/ldt_base.html
--- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po	Thu Aug 25 12:26:43 2011 +0200
+++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po	Thu Aug 25 12:40:27 2011 +0200
@@ -706,6 +706,10 @@
 msgid "Log out"
 msgstr "Déconnexion"
 
+#: templates/ldt/ldt_base.html:99
+msgid "Staff"
+msgstr "Staff"
+
 #: templates/cms/admin/cms/page/change_form.html:42
 msgid "Ordering"
 msgstr "Ordre"
--- a/src/ldt/ldt/templates/ldt/ldt_base.html	Thu Aug 25 12:26:43 2011 +0200
+++ b/src/ldt/ldt/templates/ldt/ldt_base.html	Thu Aug 25 12:40:27 2011 +0200
@@ -95,6 +95,9 @@
             <p><a href="{% url ldt.ldt_utils.views.workspace %}">{% block base_title %}{% trans "header_title" %}{% endblock %}</a></p>
         </div>
         <div id="loginstate" >
+	        {% if user.is_staff %}
+	        	<a href="{% url admin:index %}">Staff </a>|
+	        {% endif %}
             {% if user.is_authenticated %}
             <a href="{% url ldt.user.views.profile %}" >{{user.username}}</a>|&nbsp;<a href="{% url ldt.user.views.logout_view %}" >{% trans "Log out" %}</a>
             {% endif %}