aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-07-17 21:29:00 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-07-17 21:40:03 -0700
commitac3693562b635aaab4f43ad5d1343aae7ba5b7d2 (patch)
treedb0487e501af59494df550d0ed4b30b4b1bd4327 /template/html
parent99149d9f2a32dd7426c6c2e51762e0895ed8199c (diff)
Ask for confirmation before flushing history
Diffstat (limited to 'template/html')
-rw-r--r--template/html/history_entries.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/template/html/history_entries.html b/template/html/history_entries.html
index 0888778..109e1a2 100644
--- a/template/html/history_entries.html
+++ b/template/html/history_entries.html
@@ -6,7 +6,13 @@
{{ if .entries }}
<ul>
<li>
- <a href="{{ route "flushHistory" }}">{{ t "menu.flush_history" }}</a>
+ <a href="#"
+ data-confirm="true"
+ data-url="{{ route "flushHistory" }}"
+ data-label-question="{{ t "confirm.question" }}"
+ data-label-yes="{{ t "confirm.yes" }}"
+ data-label-no="{{ t "confirm.no" }}"
+ data-label-loading="{{ t "confirm.loading" }}">{{ t "menu.flush_history" }}</a>
</li>
</ul>
{{ end }}