[PATCH 30/51] base: Use a Bootstrap badge for the number of todo items

Damien Lespiau damien.lespiau at intel.com
Tue Aug 25 04:23:19 AEST 2015


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 templates/base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/base.html b/templates/base.html
index 3299193..a5a16b1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -47,7 +47,8 @@
 {% endif %}
 {% if user.is_authenticated %}
      <li><a href="{% url 'patchwork.views.user.todo_lists' %}">Todo
-      ({{ user.profile.n_todo_patches }})</a></li>
+      <span class="badge">{{ user.profile.n_todo_patches }}</span></a>
+     </li>
      <li><a href="{% url 'patchwork.views.bundle.bundles' %}">Bundles</a></li>
 {% if user.is_staff %}
      <li><a href="{% url 'admin:index' %}">Admin</a></li>
-- 
2.1.0



More information about the Patchwork mailing list