fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Added admin shortcut on navbar if user is superuser

This commit is contained in:
Felipe Martin 2014-04-24 16:51:05 +02:00
parent 25a293294e
commit d4397f21b5
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.username }} <b class="caret"></b></a>
<ul class="dropdown-menu">
{% if user.is_superuser %}
<li><a href="/admin/">Admin</a></li>
{% endif %}
<li><a href="{% url 'profile' %}" data-pjax>{% trans "Profile" %}</a></li>
<li class="divider"></li>
<li><a href="#">{% trans "My collection" %}</a></li>