From 48dfe7334e4879e5f57fe67e55cdf1f11cbfccc3 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 8 Apr 2014 20:00:18 +0200 Subject: /articles page is working. --- pyaggr3g470r/templates/articles.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pyaggr3g470r/templates/articles.html') diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html index 97b06f6a..e50b12ec 100644 --- a/pyaggr3g470r/templates/articles.html +++ b/pyaggr3g470r/templates/articles.html @@ -3,18 +3,18 @@

{{ feed.title|safe }}

- - + + {% if nb_articles == -1 %} -

{{ feed.articles|count }} articles.

+

{{ feed.articles.all()|count }} articles.

{% else %} -

Last {{ feed.articles|count }} articles. See all articles.

+

Last {{ feed.articles.all()|count }} articles. See all articles.

{% endif %}
- {% if feed.articles|count == 0 %} + {% if feed.articles.all()|count == 0 %}

No articles.

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

{% else %}

{% endif %} {{ feed.articles[n].title|safe }} -- cgit