Add confirmation box for auto-update

This commit is contained in:
Frédéric Guillot 2014-11-08 10:07:24 -05:00
parent e5947db7f1
commit d17b418328
10 changed files with 27 additions and 1 deletions

View File

@ -57,6 +57,15 @@ Router\post_action('new-db', function() {
Response\redirect('?action=about'); 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 // Auto-update
Router\get_action('auto-update', function() { Router\get_action('auto-update', function() {

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -233,4 +233,5 @@ return array(
'api' => 'api', 'api' => 'api',
'about' => 'a propos', 'about' => 'a propos',
'Link:' => 'Lien :', '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 ?',
); );

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -233,4 +233,5 @@ return array(
// 'api' => '', // 'api' => '',
// 'about' => '', // 'about' => '',
// 'Link:' => '', // 'Link:' => '',
// 'This action will update Miniflux with the last development version, are you sure?' => '',
); );

View File

@ -63,7 +63,7 @@
</div> </div>
<section class="alert alert-error"> <section class="alert alert-error">
<ul> <ul>
<li><a href="?action=auto-update"><?= t('Update Miniflux') ?></a> (<?= t('Don\'t forget to backup your database') ?>)</li> <li><a href="?action=confirm-auto-update"><?= t('Update Miniflux') ?></a> (<?= t('Don\'t forget to backup your database') ?>)</li>
</ul> </ul>
</section> </section>
<?php endif ?> <?php endif ?>

View File

@ -0,0 +1,10 @@
<div class="page-header">
<h2><?= t('Confirmation') ?></h2>
</div>
<p class="alert alert-error"><?= t('This action will update Miniflux with the last development version, are you sure?') ?></p>
<div class="form-actions">
<a href="?action=auto-update" class="btn btn-red"><?= t('Update Miniflux') ?></a>
<?= t('or') ?> <a href="?action=config"><?= t('cancel') ?></a>
</div>