summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-12-18 17:17:59 +0000
committerStephen Finucane <stephen.finucane@intel.com>2016-02-08 19:03:42 +0000
commitc0ad284c52b11a1f882847f00048ebed2ab0f732 (patch)
treea67b64dc9961c1160a27b314f1ab1a509f24b731 /templates
parent707bb9485236c4630b8b648c00d38226a939b5cd (diff)
downloadpatchwork-c0ad284c52b11a1f882847f00048ebed2ab0f732.tar
patchwork-c0ad284c52b11a1f882847f00048ebed2ab0f732.tar.gz
ui: Merge the admin link into the user dropdown
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.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html
index 7f77fce..6a44b69 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -73,14 +73,14 @@
Todo
<span class="badge">{{ user.profile.n_todo_patches }}</span></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
class="caret" /></a>
<ul class="dropdown-menu" role="menu">
+{% if user.is_staff %}
+ <li><a href="{% url 'admin:index' %}">Administration</a></li>
+{% endif %}
<li><a href="{% url 'user-profile' %}">View profile</a></li>
<li><a href="{% url 'auth_logout' %}">Logout</a></li>
</ul>