diff options
author | Diego Agulló <diego.agullo@mo2o.com> | 2018-12-14 09:54:25 +0100 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-12-16 16:58:48 -0800 |
commit | cf25efb4d9202573b5b8eeb8ff56df9568b4c331 (patch) | |
tree | b4e1293046ab047219e9dedd8fa095b0f7c5e682 /ui/category_entries.go | |
parent | 012138179c4210313f63ec8a4982d366ccee299c (diff) |
Allow to switch between unread only and all entries on category/feed views
Diffstat (limited to 'ui/category_entries.go')
-rw-r--r-- | ui/category_entries.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/category_entries.go b/ui/category_entries.go index 19b17b9..998f207 100644 --- a/ui/category_entries.go +++ b/ui/category_entries.go @@ -39,7 +39,7 @@ func (h *handler) showCategoryEntriesPage(w http.ResponseWriter, r *http.Request builder.WithCategoryID(category.ID) builder.WithOrder(model.DefaultSortingOrder) builder.WithDirection(user.EntryDirection) - builder.WithoutStatus(model.EntryStatusRemoved) + builder.WithStatus(model.EntryStatusUnread) builder.WithOffset(offset) builder.WithLimit(nbItemsPerPage) @@ -66,6 +66,7 @@ func (h *handler) showCategoryEntriesPage(w http.ResponseWriter, r *http.Request view.Set("countUnread", h.store.CountUnreadEntries(user.ID)) view.Set("countErrorFeeds", h.store.CountErrorFeeds(user.ID)) view.Set("hasSaveEntry", h.store.HasSaveEntry(user.ID)) + view.Set("showOnlyUnreadEntries", true) html.OK(w, r, view.Render("category_entries")) } |