[PATCH 10/19] ui: Merge the admin link into the user dropdown
Stephen Finucane
stephen.finucane at intel.com
Thu Feb 4 08:31:45 AEDT 2016
From: Damien Lespiau <damien.lespiau at intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Acked-by: Stephen Finucane <stephen.finucane at intel.com>
---
templates/base.html | 6 +++---
1 file 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> <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>
--
2.0.0
More information about the Patchwork
mailing list