]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
ui: Merge the TODO list into the user dropdown
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 18 Dec 2015 17:34:29 +0000 (17:34 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 8 Feb 2016 19:03:43 +0000 (19:03 +0000)
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>
templates/base.html

index 6a44b69e53a4c5f72982127d73af8d6c45f42018..f5a065dd0f24727098e1c13850859de71c366e4c 100644 (file)
 {% 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>&nbsp;<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>&nbsp;<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 %}