aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/feed_entries.html
diff options
context:
space:
mode:
authorGravatar Diego Agulló <diego.agullo@mo2o.com>2018-12-14 09:54:25 +0100
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-12-16 16:58:48 -0800
commitcf25efb4d9202573b5b8eeb8ff56df9568b4c331 (patch)
treeb4e1293046ab047219e9dedd8fa095b0f7c5e682 /template/html/feed_entries.html
parent012138179c4210313f63ec8a4982d366ccee299c (diff)
Allow to switch between unread only and all entries on category/feed views
Diffstat (limited to 'template/html/feed_entries.html')
-rw-r--r--template/html/feed_entries.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html
index cdc435c..7e2f9c6 100644
--- a/template/html/feed_entries.html
+++ b/template/html/feed_entries.html
@@ -9,6 +9,15 @@
<a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a>
</li>
{{ end }}
+ {{ if .showOnlyUnreadEntries }}
+ <li>
+ <a href="{{ route "feedEntriesAll" "feedID" .feed.ID }}">{{ t "menu.show_all_entries" }}</a>
+ </li>
+ {{ else }}
+ <li>
+ <a href="{{ route "feedEntries" "feedID" .feed.ID }}">{{ t "menu.show_only_unread_entries" }}</a>
+ </li>
+ {{ end }}
<li>
<a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "menu.refresh_feed" }}</a>
</li>