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

Damien Lespiau damien.lespiau at intel.com
Sun Nov 9 06:08:51 AEDT 2014


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 86a0ca9..0d463d9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -50,7 +50,8 @@
 {% endif %}
 {% if user.is_authenticated %}
      <li><a href="{% url 'patchwork.views.user.todo_lists' %}">Todo
-      ({{ user.get_profile.n_todo_patches }})</a></li>
+      <span class="badge">{{ user.get_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>
-- 
1.8.3.1



More information about the Patchwork mailing list