diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-18 17:34:29 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:43 +0000 |
commit | 8d5748453623a8271a2ae2885e571002be2455ac (patch) | |
tree | 80b0311316bda82eb8e4fd2a33e3081d242ac36b /templates | |
parent | c0ad284c52b11a1f882847f00048ebed2ab0f732 (diff) | |
download | patchwork-8d5748453623a8271a2ae2885e571002be2455ac.tar patchwork-8d5748453623a8271a2ae2885e571002be2455ac.tar.gz |
ui: Merge the TODO list into the user dropdown
We still leave the badge on the top bar so we can see, at a glance, the
number of items on the TODO list. The actual menu item is folded into
the 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.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/base.html b/templates/base.html index 6a44b69..f5a065d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -68,16 +68,18 @@ {% endif %} <ul class="nav navbar-nav navbar-right"> {% if user.is_authenticated %} - <li> - <a href="{% url 'user-todos' %}"> - Todo - <span class="badge">{{ user.profile.n_todo_patches }}</span></a> - </li> <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown" - ><strong>{{ user.username }}</strong> <span - class="caret" /></a> + <a href="#" class="dropdown-toggle" data-toggle="dropdown"> + <span class="badge">{{ user.profile.n_todo_patches }}</span> + <strong>{{ user.username }}</strong> <span class="caret" /> + </a> <ul class="dropdown-menu" role="menu"> + <li> + <a href="{% url 'user-todos' %}"> + Reviews pending + <span class="badge">{{ user.profile.n_todo_patches }}</span> + </a> + </li> {% if user.is_staff %} <li><a href="{% url 'admin:index' %}">Administration</a></li> {% endif %} |