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/session_list.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/session_list.go') diff --git a/ui/session_list.go b/ui/session_list.go index 19aa13e..3cb8d94 100644 --- a/ui/session_list.go +++ b/ui/session_list.go @@ -39,6 +39,7 @@ func (c *Controller) ShowSessions(w http.ResponseWriter, r *http.Request) { view.Set("menu", "settings") view.Set("user", user) view.Set("countUnread", c.store.CountUnreadEntries(user.ID)) + view.Set("countErrorFeeds", c.store.CountErrorFeeds(user.ID)) html.OK(w, r, view.Render("sessions")) } -- cgit v1.2.3