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?
+ + \ 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 @@