1
0
Fork 0

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).
This commit is contained in:
Dave Z 2018-08-26 19:18:07 -04:00 committed by Frédéric Guillot
parent aae62aae08
commit 9169fbafb2
42 changed files with 71 additions and 13 deletions

View file

@ -31,6 +31,7 @@ func (c *Controller) About(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("about"))
}