aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-05 07:15:44 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-05 07:15:44 +0100
commitda3ac55fc2abedc7b8864dabe180b0ff6ef5a1a2 (patch)
treecbeb8a3df3e6e7334d58c7231067d095a62cb0c9 /pyaggr3g470r/templates
parentMisplaced point. (diff)
downloadnewspipe-da3ac55fc2abedc7b8864dabe180b0ff6ef5a1a2.tar.gz
newspipe-da3ac55fc2abedc7b8864dabe180b0ff6ef5a1a2.tar.bz2
newspipe-da3ac55fc2abedc7b8864dabe180b0ff6ef5a1a2.zip
Take advantage of some new fields of the Feed objects.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/feed.html16
1 files changed, 10 insertions, 6 deletions
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 @@
<p>
{{ _('This feed contains') }} {{ feed.articles.all()|count }} <a href="/articles/{{ feed.id }}/100">{{ _('articles') }}</a>
{% 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') }}).<br />
{% endif %}
- .<br />
+
+ {% if feed.last_retrieved %}
+ {{ _("Last download:") }} <pre>{{ feed.last_retrieved }}</pre><br />
+ {% endif %}
+
{% if feed.error_count > 2 %}
- <b>{{ _("That feed has encountered too much consecutive errors and won't be retreived anymore.") }}</b>
+ <b>{{ _("That feed has encountered too much consecutive errors and won't be retrieved anymore.") }}</b><br />
{% 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.") }}<br />
{% endif %}
- <br />
+
{% if feed.last_error %}
- {{ _("Here's the last error encountered while retreiving this feed:") }} <pre>{{ feed.last_error }}</pre>
+ {{ _("Here's the last error encountered while retreiving this feed:") }} <pre>{{ feed.last_error }}</pre><br />
{% endif %}
{{ _('Address of the feed') }}: <a href="{{ feed.link }}">{{ feed.link }}</a><br />
bgstack15