From b9b5e2aaf37a7e480ba58439495e9f60f418c599 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Thu, 2 Jul 2015 18:08:43 +0200 Subject: using conf.DEFAULT_MAX_ERROR in feed template --- pyaggr3g470r/templates/feed.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html index 09a064e5..cce74b19 100644 --- a/pyaggr3g470r/templates/feed.html +++ b/pyaggr3g470r/templates/feed.html @@ -21,7 +21,7 @@ {{ _("Last download:") }} {{ feed.last_retrieved | datetime }}
{% endif %} - {% if feed.error_count > 2 %} + {% 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 %} -- cgit