From fc475a0e8c1f66b9dfc4011aff904d8b15b5974f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 9 Nov 2013 13:23:54 +0100 Subject: Fixed a minor bug in templates (when displaying list of articles). --- pyaggr3g470r/templates/unread.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/templates/unread.html') diff --git a/pyaggr3g470r/templates/unread.html b/pyaggr3g470r/templates/unread.html index a7991363..2296e6ec 100644 --- a/pyaggr3g470r/templates/unread.html +++ b/pyaggr3g470r/templates/unread.html @@ -9,6 +9,7 @@

{{ feed.title }}

+

{{ feed.articles|length }} unread articles.

{% for number in range(0, feed.articles|length-(feed.articles|length % 3), 3) %} @@ -25,7 +26,7 @@ {% endfor %} {% if feed.articles|length % 3 != 0 %}
- {% for n in range(0, feed.articles|length % 3) %} + {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} {{ feed.articles[n].title }}

-- cgit