From 61b060c49471448a5c5b49ef495d552476a093d4 Mon Sep 17 00:00:00 2001
From: Simo Sorce <idra@samba.org>
Date: Thu, 25 Oct 2012 01:00:43 -0400
Subject: [PATCH] Add quick link to admin panel if a user is a member of the
staff
Signed-off-by: Simo Sorce <idra@samba.org>
---
templates/base.html | 3 +++
1 file changed, 3 insertions(+)
@@ -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>
--
1.7.12.1