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 /template/html/category_entries.html | |
parent | 012138179c4210313f63ec8a4982d366ccee299c (diff) |
Allow to switch between unread only and all entries on category/feed views
Diffstat (limited to 'template/html/category_entries.html')
-rw-r--r-- | template/html/category_entries.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/template/html/category_entries.html b/template/html/category_entries.html index 69e4f74..671634d 100644 --- a/template/html/category_entries.html +++ b/template/html/category_entries.html @@ -3,13 +3,22 @@ {{ define "content"}} <section class="page-header"> <h1>{{ .category.Title }} ({{ .total }})</h1> - {{ if .entries }} <ul> + {{ if .entries }} <li> <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a> </li> - </ul> {{ end }} + {{ if .showOnlyUnreadEntries }} + <li> + <a href="{{ route "categoryEntriesAll" "categoryID" .category.ID }}">{{ t "menu.show_all_entries" }}</a> + </li> + {{ else }} + <li> + <a href="{{ route "categoryEntries" "categoryID" .category.ID }}">{{ t "menu.show_only_unread_entries" }}</a> + </li> + {{ end }} + </ul> </section> {{ if not .entries }} |