add admin site link for staff in base template
This commit is contained in:
parent
9fa1944c31
commit
8cf6aab643
2 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue