summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-10-24 19:08:43 +0000
committerJeremy Kerr <jk@ozlabs.org>2012-11-05 21:16:35 +0800
commit2894c4aeec566cb678a331f44f3d981c09c7d90c (patch)
tree03015d914d75ba71c9747881ffa41c69d2e8c336 /templates
parentbc695f5a7e0a2dd184dc0eae7a923be24b1b1723 (diff)
downloadpatchwork-2894c4aeec566cb678a331f44f3d981c09c7d90c.tar.bz2
patchwork-2894c4aeec566cb678a331f44f3d981c09c7d90c.tar.xz
Add shortcut to admin panel
This patch adds a shortcut to the admin panel but only for users that are members of staff. Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index d3b8e67..787433f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -26,6 +26,9 @@
<a href="{% url patchwork.views.bundle.bundles %}">bundles</a>
<br/>
<a href="{% url patchwork.views.user.profile %}">profile</a> ::
+{% if user.is_staff %}
+ <a href="{% url admin:index %}">admin</a> ::
+{% endif %}
<a href="{% url auth_logout %}">logout</a>
{% else %}
<a href="{% url auth_login %}">login</a>