aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Dave Z <dzaikos@users.noreply.github.com>2018-08-26 19:18:07 -0400
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-08-26 16:18:07 -0700
commit9169fbafb2e07b33b2ca175c7ac4a9558280912c (patch)
treedec99d5077d7db0c7fa742e606e5cf5368e7dd2b /template/html
parentaae62aae08c7581822db0318dba21782d613b4bb (diff)
Show count of feeds with permanent errors in header menu
Only for feeds that reach `maxParsingError` are counted (so transient errors do not trigger counter).
Diffstat (limited to 'template/html')
-rw-r--r--template/html/common/layout.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index 23464e6..b6a7b13 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -60,7 +60,11 @@
<a href="{{ route "history" }}" data-page="history">{{ t "History" }}</a>
</li>
<li {{ if eq .menu "feeds" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g f" }}">
- <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}</a>
+ <a href="{{ route "feeds" }}" data-page="feeds">{{ t "Feeds" }}
+ {{ if gt .countErrorFeeds 0 }}
+ <span class="error-feeds-counter-wrapper">(<span class="error-feeds-counter">{{ .countErrorFeeds }}</span>)</span>
+ {{ end }}
+ </a>
</li>
<li {{ if eq .menu "categories" }}class="active"{{ end }} title="{{ t "Keyboard Shortcut: %s" "g c" }}">
<a href="{{ route "categories" }}" data-page="categories">{{ t "Categories" }}</a>