From 9169fbafb2e07b33b2ca175c7ac4a9558280912c Mon Sep 17 00:00:00 2001 From: Dave Z Date: Sun, 26 Aug 2018 19:18:07 -0400 Subject: 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). --- ui/history_entries.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/history_entries.go') diff --git a/ui/history_entries.go b/ui/history_entries.go index 3835b34..de12539 100644 --- a/ui/history_entries.go +++ b/ui/history_entries.go @@ -54,6 +54,7 @@ func (c *Controller) ShowHistoryPage(w http.ResponseWriter, r *http.Request) { view.Set("menu", "history") view.Set("user", user) view.Set("countUnread", c.store.CountUnreadEntries(user.ID)) + view.Set("countErrorFeeds", c.store.CountErrorFeeds(user.ID)) view.Set("hasSaveEntry", c.store.HasSaveEntry(user.ID)) html.OK(w, r, view.Render("history_entries")) -- cgit v1.2.3