aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/history_entries.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-04-29 17:43:40 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-04-29 17:43:40 -0700
commit31da4db14fdda364b1c72460a81e3ccce67ff7e8 (patch)
tree911808c77accb72d99ca4328b8d0907d0a36fdd4 /ui/history_entries.go
parentb166ceaea72dc6db77467621ffc270fbdccb6566 (diff)
Do not show save link if no integration is configured
Diffstat (limited to 'ui/history_entries.go')
-rw-r--r--ui/history_entries.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/history_entries.go b/ui/history_entries.go
index e695ce3..9945500 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("hasSaveEntry", c.store.HasSaveEntry(user.ID))
- html.OK(w, view.Render("history"))
+ html.OK(w, view.Render("history_entries"))
}