diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-18 17:17:59 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:42 +0000 |
commit | c0ad284c52b11a1f882847f00048ebed2ab0f732 (patch) | |
tree | a67b64dc9961c1160a27b314f1ab1a509f24b731 /templates/base.html | |
parent | 707bb9485236c4630b8b648c00d38226a939b5cd (diff) | |
download | patchwork-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/base.html')
-rw-r--r-- | templates/base.html | 6 |
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> <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> |