From b35e9773198ef2d8b37c4ca223f08147db47de0b Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sat, 12 Dec 2015 21:14:28 +0100 Subject: moving the root of source code from / to /src/ --- src/web/templates/feed.html | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/web/templates/feed.html (limited to 'src/web/templates/feed.html') diff --git a/src/web/templates/feed.html b/src/web/templates/feed.html new file mode 100644 index 00000000..c421a411 --- /dev/null +++ b/src/web/templates/feed.html @@ -0,0 +1,47 @@ +{% extends "layout.html" %} +{% block content %} +
+
+

{{ feed.title }}

+ {% if feed.description %}

{{ feed.description }}

{% endif %} + + +
+
+

+ {{ _('This feed contains') }} {{ feed.articles.all()|count }} {{ _('articles') }}.
+ {{ _('Address of the feed') }}: {{ feed.link }}
+ {% if feed.site_link != "" %} + {{ _('Address of the site') }}: {{ feed.site_link }}
+ {% endif %} + +
+ + {% if feed.last_retrieved %} + {{ _("Last download:") }} {{ feed.last_retrieved | datetime }}
+ {% endif %} + + {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %} + {{ _("That feed has encountered too much consecutive errors and won't be retrieved anymore.") }}
+ {{ _("You can click here to reset the error count and reactivate the feed.", reset_error_url=url_for("feed.reset_errors", feed_id=feed.id)) }} + {% elif feed.error_count > 0 %} + {{ _("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 retrieving this feed:") }}

{{ feed.last_error }}

+ {% endif %} + + {% if feed.articles.all()|count != 0 %} + {{ _('The last article was posted') }} {{ elapsed.days }} {{ _('day(s) ago.') }}
+ {{ _('Daily average') }}: {{ average }}, {{ _('between the') }} {{ first_post_date | datetime }} {{ _('and the') }} {{ end_post_date | datetime }}. + {% endif %} +

+
+
+ {% if feed.articles.all()|count != 0 %} +
{{ tag_cloud|safe }}
+ {% endif %} +
+
+{% endblock %} -- cgit