add admin site link for staff in base template

This commit is contained in:
Jan Dittberner 2015-01-17 16:12:38 +01:00
parent 9fa1944c31
commit 8cf6aab643
2 changed files with 8 additions and 3 deletions

View file

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gnuviechadmin\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 15:59+0100\n"
"PO-Revision-Date: 2015-01-17 16:00+0100\n"
"POT-Creation-Date: 2015-01-17 16:13+0100\n"
"PO-Revision-Date: 2015-01-17 16:14+0100\n"
"Last-Translator: Jan Dittberner <jan@dittberner.info>\n"
"Language-Team: Jan Dittberner <jan@dittberner.info>\n"
"Language: de\n"
@ -24,10 +24,14 @@ msgid "My Profile"
msgstr "Mein Profil"
#: templates/base.html:53
msgid "Admin site"
msgstr "Adminsite"
#: templates/base.html:54
msgid "Logout"
msgstr "Abmelden"
#: templates/base.html:55 templates/registration/login.html:4
#: templates/base.html:56 templates/registration/login.html:4
msgid "Sign In"
msgstr "Anmelden"

View file

@ -50,6 +50,7 @@
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
<li><a href="#">{% trans "My Profile" %}</a></li>
{% if user.is_staff %}<li><a href="{% url 'admin:index' %}">{% trans "Admin site" %}</a></li>{% endif %}
<li><a href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
{% else %}
<li><a href="{% url 'login' %}?next={{ request.path }}">{% trans "Sign In" %}</a></li>