From 716322058ac9077ad19eb4d8284a82ca2e63e4e6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 6 Jan 2014 07:53:55 +0100 Subject: Minor fix when a feed contains 0 article. --- pyaggr3g470r/templates/feed.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index b0f06eb6..9825e16b 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -8,12 +8,14 @@

This feed contains {{ feed.articles|count }} articles.

Address of the feed: {{ feed.link }}.

Address of the site: {{ feed.site_link }}.

-
-

The last article was posted {{ elapsed.days }} day(s) ago.
- Daily average: {{ average }}, between the {{ first_post_date.strftime('%Y-%m-%d') }} and the {{ end_post_date.strftime('%Y-%m-%d') }}.

-
-

Tag cloud

-
{{ tag_cloud|safe }}
+ {% if feed.articles|count != 0 %} +
+

The last article was posted {{ elapsed.days }} day(s) ago.
+ Daily average: {{ average }}, between the {{ first_post_date.strftime('%Y-%m-%d') }} and the {{ end_post_date.strftime('%Y-%m-%d') }}.

+
+

Tag cloud

+
{{ tag_cloud|safe }}
+ {% endif %} {% endblock %} -- cgit