From b429058b0c737616c3d804d97a3c7e2dcbf69737 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 23 May 2014 11:34:51 +0200 Subject: Bootstrap badge to display the number of unread articles by feed. --- pyaggr3g470r/templates/home.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r/templates/home.html') diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index f10d4e11..94e4d736 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -7,14 +7,19 @@ {% for feed in result|sort(attribute="title") %}
-

{{ feed.title|safe }}

+

{{ feed.title|safe }} + {% if unread[feed.id] != 0 %} + {{ unread[feed.id] }} + {% endif %}

{% if feed.enabled %} {% endif %} - + {% if unread[feed.id] != 0 %} + + {% endif %}
{% for number in range(0, feed.articles.all()|count-(feed.articles.all()|count % 3), 3) %} -- cgit