From 5989b3860868def331fdafbda274dbea712482ab Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 26 Jan 2014 19:10:59 +0100 Subject: Updated /feed page. --- pyaggr3g470r/templates/feed.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index c405d913..1ad27947 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -8,15 +8,18 @@
-

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

-

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

-

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

+

+ This feed contains {{ feed.articles|count }} articles.
+ Address of the feed: {{ feed.link }}.
+ Address of the site: {{ feed.site_link }}.
+ {% 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') }}. + {% endif %} +

+
+
{% 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 %}
-- cgit