aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html')
-rw-r--r--template/html/category_entries.html13
-rw-r--r--template/html/feed_entries.html9
2 files changed, 20 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 }}
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>