Skip to content

Commit 0082ff9

Browse files
committed
show a link to the admin site in the top-nav dropdown for superusers
1 parent 35f2fba commit 0082ff9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/templates/top-nav.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
<li><a href="{% url 'profile_projects' user.pk %}"><span class="glyphicon glyphicon-briefcase"></span> Projects</a></li>
8686
<li role="separator" class="divider"></li>
8787
<li><a href="{% url 'edit_profile' %}"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
88+
{% if request.user.is_superuser %}
89+
<li><a href="{% url 'admin:index' %}"><span class="glyphicon glyphicon-tower"></span> Admin</a></li>
90+
{% endif %}
8891
<li role="separator" class="divider"></li>
8992
{% if CAN_LOGOUT %}
9093
<li>

0 commit comments

Comments
 (0)