diff options
author | Dave Z <dzaikos@users.noreply.github.com> | 2018-08-26 19:18:07 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-08-26 16:18:07 -0700 |
commit | 9169fbafb2e07b33b2ca175c7ac4a9558280912c (patch) | |
tree | dec99d5077d7db0c7fa742e606e5cf5368e7dd2b /ui/entry_unread.go | |
parent | aae62aae08c7581822db0318dba21782d613b4bb (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 'ui/entry_unread.go')
-rw-r--r-- | ui/entry_unread.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/entry_unread.go b/ui/entry_unread.go index 784255e..68e5496 100644 --- a/ui/entry_unread.go +++ b/ui/entry_unread.go @@ -95,6 +95,7 @@ func (c *Controller) ShowUnreadEntry(w http.ResponseWriter, r *http.Request) { view.Set("menu", "unread") view.Set("user", user) view.Set("hasSaveEntry", c.store.HasSaveEntry(user.ID)) + view.Set("countErrorFeeds", c.store.CountErrorFeeds(user.ID)) // Fetching the counter here avoid to be off by one. view.Set("countUnread", c.store.CountUnreadEntries(user.ID)) |