From d17b418328f2bf515f248997de7db9a4834f491d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 8 Nov 2014 10:07:24 -0500 Subject: [PATCH] Add confirmation box for auto-update --- controllers/config.php | 9 +++++++++ locales/cs_CZ/translations.php | 1 + locales/de_DE/translations.php | 1 + locales/es_ES/translations.php | 1 + locales/fr_FR/translations.php | 1 + locales/it_IT/translations.php | 1 + locales/pt_BR/translations.php | 1 + locales/zh_CN/translations.php | 1 + templates/config.php | 2 +- templates/confirm_auto_update.php | 10 ++++++++++ 10 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 templates/confirm_auto_update.php diff --git a/controllers/config.php b/controllers/config.php index e773b14..6c1c7fd 100644 --- a/controllers/config.php +++ b/controllers/config.php @@ -57,6 +57,15 @@ Router\post_action('new-db', function() { Response\redirect('?action=about'); }); +// Comfirmation box before auto-update +Router\get_action('confirm-auto-update', function() { + + Response\html(Template\layout('confirm_auto_update', array( + 'menu' => 'config', + 'title' => t('Confirmation') + ))); +}); + // Auto-update Router\get_action('auto-update', function() { diff --git a/locales/cs_CZ/translations.php b/locales/cs_CZ/translations.php index daf957e..88f989e 100644 --- a/locales/cs_CZ/translations.php +++ b/locales/cs_CZ/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/locales/de_DE/translations.php b/locales/de_DE/translations.php index 362b44f..1e195c7 100644 --- a/locales/de_DE/translations.php +++ b/locales/de_DE/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/locales/es_ES/translations.php b/locales/es_ES/translations.php index 0ff0c25..64cf7f5 100644 --- a/locales/es_ES/translations.php +++ b/locales/es_ES/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 827ff8a..8533da5 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -233,4 +233,5 @@ return array( 'api' => 'api', 'about' => 'a propos', 'Link:' => 'Lien :', + 'This action will update Miniflux with the last development version, are you sure?' => 'Cette action va mettre à jour Miniflux avec la dernière version en cours de développement, êtes-vous certain ?', ); diff --git a/locales/it_IT/translations.php b/locales/it_IT/translations.php index 0b0d4f1..e2c0795 100644 --- a/locales/it_IT/translations.php +++ b/locales/it_IT/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/locales/pt_BR/translations.php b/locales/pt_BR/translations.php index 4e37869..d4753c1 100644 --- a/locales/pt_BR/translations.php +++ b/locales/pt_BR/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/locales/zh_CN/translations.php b/locales/zh_CN/translations.php index 15ad10e..0ef9049 100644 --- a/locales/zh_CN/translations.php +++ b/locales/zh_CN/translations.php @@ -233,4 +233,5 @@ return array( // 'api' => '', // 'about' => '', // 'Link:' => '', + // 'This action will update Miniflux with the last development version, are you sure?' => '', ); diff --git a/templates/config.php b/templates/config.php index 09a8c28..18d5a52 100644 --- a/templates/config.php +++ b/templates/config.php @@ -63,7 +63,7 @@
diff --git a/templates/confirm_auto_update.php b/templates/confirm_auto_update.php new file mode 100644 index 0000000..c524370 --- /dev/null +++ b/templates/confirm_auto_update.php @@ -0,0 +1,10 @@ + + +

+ +
+ + +
\ No newline at end of file