From b854be546b949654c62b44952191babd500f6bb5 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 6 Apr 2013 22:21:16 -0400 Subject: [PATCH] Add confirmation box before flush --- miniflux/index.php | 8 ++++++++ miniflux/templates/confirm_flush.php | 10 ++++++++++ miniflux/templates/read_items.php | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 miniflux/templates/confirm_flush.php diff --git a/miniflux/index.php b/miniflux/index.php index 9431761..ecdd2ec 100644 --- a/miniflux/index.php +++ b/miniflux/index.php @@ -212,6 +212,14 @@ Router\get_action('mark-as-read', function() { }); +Router\get_action('confirm-flush-history', function() { + + Response\html(Template\layout('confirm_flush', array( + 'menu' => 'history' + ))); +}); + + Router\get_action('flush-history', function() { Model\flush_read(); diff --git a/miniflux/templates/confirm_flush.php b/miniflux/templates/confirm_flush.php new file mode 100644 index 0000000..5a15913 --- /dev/null +++ b/miniflux/templates/confirm_flush.php @@ -0,0 +1,10 @@ + + +

Do you really want to remove these items from your history?

+ +
+ Yes + or cancel +
\ No newline at end of file diff --git a/miniflux/templates/read_items.php b/miniflux/templates/read_items.php index ada3c3d..1944e81 100644 --- a/miniflux/templates/read_items.php +++ b/miniflux/templates/read_items.php @@ -7,7 +7,7 @@