aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/feed_entries.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-07-17 21:07:29 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-07-17 21:15:30 -0700
commit99149d9f2a32dd7426c6c2e51762e0895ed8199c (patch)
treea6f5e2a5758a2e909377e286ad3e129b8e0ed9e8 /template/html/feed_entries.html
parent2b6e17c1ef7f54f822e37991eaf7a309013182e2 (diff)
Refactor confirmation handler
Diffstat (limited to 'template/html/feed_entries.html')
-rw-r--r--template/html/feed_entries.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html
index ce65dce..c162faf 100644
--- a/template/html/feed_entries.html
+++ b/template/html/feed_entries.html
@@ -7,15 +7,12 @@
{{ if .entries }}
<li>
<a href="#"
- data-confirm="true"
+ data-action="markPageAsRead"
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}"
- data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}"
- data-mark-page-as-read="true">
- {{ t "menu.mark_page_as_read" }}
- </a>
+ data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}">{{ t "menu.mark_page_as_read" }}</a>
</li>
{{ end }}
{{ if .showOnlyUnreadEntries }}
@@ -82,15 +79,12 @@
<ul>
<li>
<a href="#"
- data-confirm="true"
+ data-action="markPageAsRead"
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}"
- data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}"
- data-mark-page-as-read="true">
- {{ t "menu.mark_page_as_read" }}
- </a>
+ data-show-only-unread="{{ if .showOnlyUnreadEntries }}1{{ end }}">{{ t "menu.mark_page_as_read" }}</a>
</li>
</ul>
{{ end }}