diff options
author | Simo Sorce <idra@samba.org> | 2012-10-24 19:08:43 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2012-11-05 21:16:35 +0800 |
commit | 2894c4aeec566cb678a331f44f3d981c09c7d90c (patch) | |
tree | 03015d914d75ba71c9747881ffa41c69d2e8c336 | |
parent | bc695f5a7e0a2dd184dc0eae7a923be24b1b1723 (diff) | |
download | patchwork-2894c4aeec566cb678a331f44f3d981c09c7d90c.tar patchwork-2894c4aeec566cb678a331f44f3d981c09c7d90c.tar.gz |
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>
-rw-r--r-- | templates/base.html | 3 |
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> |