aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-03-16 13:30:00 +0000
committerStephen Finucane <stephen.finucane@intel.com>2015-11-05 03:56:25 +0000
commit383c7e20c2eaf8222a8239c188455e7c7dd4f322 (patch)
tree74fd3d9708cfe2792717b7ff1d0d4c7fe14d2f42 /templates
parent1b1d2972133ac4789ef1bb97f8bf2fc9b0a95cd2 (diff)
downloadpatchwork-383c7e20c2eaf8222a8239c188455e7c7dd4f322.tar
patchwork-383c7e20c2eaf8222a8239c188455e7c7dd4f322.tar.gz
base: Don't put the logout button in the is_staff block
Regular users didn't have their logout/profile drop down! Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index e5dfee8..2e0b487 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -51,6 +51,7 @@
<li><a href="{% url 'patchwork.views.bundle.bundles' %}">Bundles</a></li>
{% if user.is_staff %}
<li><a href="{% url 'admin:index' %}">Admin</a></li>
+{% endif %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
><strong>{{ user.username }}</strong>&nbsp;<span
@@ -60,7 +61,6 @@
<li><a href="{% url 'auth_logout' %}">Logout</a></li>
</ul>
</li>
-{% endif %}
{% else %}
<li><a href="{% url 'auth_login' %}">Login</a></li>
<li><a href="{% url 'patchwork.views.user.register' %}">Register</a></li>