mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Allow to switch between unread only and all entries on category/feed views
This commit is contained in:
parent
012138179c
commit
cf25efb4d9
16 changed files with 227 additions and 15 deletions
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue