diff options
Diffstat (limited to 'template/html/category_entries.html')
-rw-r--r-- | template/html/category_entries.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/template/html/category_entries.html b/template/html/category_entries.html index 671634d..17f7de4 100644 --- a/template/html/category_entries.html +++ b/template/html/category_entries.html @@ -6,7 +6,10 @@ <ul> {{ if .entries }} <li> - <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a> + <a href="#" data-on-click="markPageAsRead" + data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}"> + {{ t "menu.mark_page_as_read" }} + </a> </li> {{ end }} {{ if .showOnlyUnreadEntries }} @@ -44,7 +47,10 @@ {{ if .entries }} <ul> <li> - <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a> + <a href="#" data-on-click="markPageAsRead" + data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}"> + {{ t "menu.mark_page_as_read" }} + </a> </li> </ul> {{ end }} |