]> git.ozlabs.org Git - patchwork/blobdiff - templates/base.html
Add shortcut to admin panel
[patchwork] / templates / base.html
index d3b8e6776690471e7bb2941bfbe95da0fb4da7af..787433f15e13d8ac2960756fee1a9f820516acb5 100644 (file)
@@ -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>