aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/subscription_submit.go
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 /ui/subscription_submit.go
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 'ui/subscription_submit.go')
-rw-r--r--ui/subscription_submit.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/subscription_submit.go b/ui/subscription_submit.go
index f7a0181..fe61513 100644
--- a/ui/subscription_submit.go
+++ b/ui/subscription_submit.go
@@ -40,6 +40,7 @@ func (c *Controller) SubmitSubscription(w http.ResponseWriter, r *http.Request)
v.Set("menu", "feeds")
v.Set("user", user)
v.Set("countUnread", c.store.CountUnreadEntries(user.ID))
+ v.Set("countErrorFeeds", c.store.CountErrorFeeds(user.ID))
subscriptionForm := form.NewSubscriptionForm(r)
if err := subscriptionForm.Validate(); err != nil {
@@ -94,6 +95,7 @@ func (c *Controller) SubmitSubscription(w http.ResponseWriter, r *http.Request)
v.Set("menu", "feeds")
v.Set("user", user)
v.Set("countUnread", c.store.CountUnreadEntries(user.ID))
+ v.Set("countErrorFeeds", c.store.CountErrorFeeds(user.ID))
html.OK(w, r, v.Render("choose_subscription"))
}