From da3ac55fc2abedc7b8864dabe180b0ff6ef5a1a2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 5 Mar 2015 07:15:44 +0100 Subject: Take advantage of some new fields of the Feed objects. --- pyaggr3g470r/templates/feed.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index 09bb54cb..12a7aa50 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -11,17 +11,21 @@

{{ _('This feed contains') }} {{ feed.articles.all()|count }} {{ _('articles') }} {% if nb_articles != 0 %} - ({{ ((feed.articles.all()|count * 100 ) / nb_articles) | round(2, 'floor') }}% {{ _('of the database') }}) + ({{ ((feed.articles.all()|count * 100 ) / nb_articles) | round(2, 'floor') }}% {{ _('of the database') }}).
{% endif %} - .
+ + {% if feed.last_retrieved %} + {{ _("Last download:") }}

{{ feed.last_retrieved }}

+ {% endif %} + {% if feed.error_count > 2 %} - {{ _("That feed has encountered too much consecutive errors and won't be retreived anymore.") }} + {{ _("That feed has encountered too much consecutive errors and won't be retrieved anymore.") }}
{% elif feed.error_count > 0 %} - {{ _("That feed has encountered some errors but that counter will be reinitialized at the next successful retreiving.") }} + {{ _("The download of this feed has encountered some problems. However its error counter will be reinitialized at the next successful retrieving.") }}
{% endif %} -
+ {% if feed.last_error %} - {{ _("Here's the last error encountered while retreiving this feed:") }}
{{ feed.last_error }}
+ {{ _("Here's the last error encountered while retreiving this feed:") }}
{{ feed.last_error }}

{% endif %} {{ _('Address of the feed') }}: {{ feed.link }}
-- cgit