diff --git a/template/templates/common/feed_list.html b/template/templates/common/feed_list.html index 20cbaad5..27116a36 100644 --- a/template/templates/common/feed_list.html +++ b/template/templates/common/feed_list.html @@ -44,7 +44,13 @@ {{ if .UnreadCount }}
  • - {{ template "icon_read" }}{{ t "menu.mark_all_as_read" }} + {{ template "icon_read" }}{{ t "menu.mark_all_as_read" }}
  • {{ end }} diff --git a/template/templates/views/feed_entries.html b/template/templates/views/feed_entries.html index 67f38fb0..1322a416 100644 --- a/template/templates/views/feed_entries.html +++ b/template/templates/views/feed_entries.html @@ -17,6 +17,15 @@ data-label-loading="{{ t "confirm.loading" }}" data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}">{{ t "menu.mark_page_as_read" }} +
  • + {{ t "menu.mark_all_as_read" }} +
  • {{ end }} {{ if .showOnlyUnreadEntries }}
  • diff --git a/ui/ui.go b/ui/ui.go index 3ef2324d..f5339a24 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -80,7 +80,7 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) { uiRouter.HandleFunc("/feed/{feedID}/entries/all", handler.showFeedEntriesAllPage).Name("feedEntriesAll").Methods(http.MethodGet) uiRouter.HandleFunc("/feed/{feedID}/entry/{entryID}", handler.showFeedEntryPage).Name("feedEntry").Methods(http.MethodGet) uiRouter.HandleFunc("/feed/icon/{iconID}", handler.showIcon).Name("icon").Methods(http.MethodGet) - uiRouter.HandleFunc("/feed/{feedID}/mark-all-as-read", handler.markFeedAsRead).Name("markFeedAsRead").Methods(http.MethodGet) + uiRouter.HandleFunc("/feed/{feedID}/mark-all-as-read", handler.markFeedAsRead).Name("markFeedAsRead").Methods(http.MethodPost) // Category pages. uiRouter.HandleFunc("/category/{categoryID}/entry/{entryID}", handler.showCategoryEntryPage).Name("categoryEntry").Methods(http.MethodGet)