From b045592c9f93572a3feb08cbfbeb7a928df280e2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 5 Feb 2014 19:55:31 +0100 Subject: Display last 'n' articles. --- pyaggr3g470r/templates/articles.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/templates/articles.html') diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html index eb4701d7..97b06f6a 100644 --- a/pyaggr3g470r/templates/articles.html +++ b/pyaggr3g470r/templates/articles.html @@ -5,7 +5,11 @@

{{ feed.title|safe }}

-

{{ feed.articles|count }} articles.

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

{{ feed.articles|count }} articles.

+ {% else %} +

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

+ {% endif %} {% if feed.articles|count == 0 %}

No articles.

-- cgit