From c45c9e2d78f116c5241676d887df9f1812f218a7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 2 Oct 2014 08:06:03 +0200 Subject: Bug fix: minor problem on the /search page. --- pyaggr3g470r/templates/search.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyaggr3g470r/templates/search.html') diff --git a/pyaggr3g470r/templates/search.html b/pyaggr3g470r/templates/search.html index 7b32d80c..d3a1558d 100644 --- a/pyaggr3g470r/templates/search.html +++ b/pyaggr3g470r/templates/search.html @@ -18,7 +18,7 @@ - {% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %} + {% for number in range(0, feed.articles|length-(feed.articles|length % 3), 3) %}
{% for n in range(number, number+3) %}
@@ -30,9 +30,9 @@ {% endfor %}
{% endfor %} - {% if feed.articles.all()|length % 3 != 0 %} + {% if feed.articles|length % 3 != 0 %}
- {% for n in range(feed.articles.all()|length-(feed.articles.all()|length % 3), feed.articles.all()|length) %} + {% 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|safe }} -- cgit