Add confirmation box for auto-update
This commit is contained in:
parent
e5947db7f1
commit
d17b418328
@ -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() {
|
||||
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -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 ?',
|
||||
);
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -233,4 +233,5 @@ return array(
|
||||
// 'api' => '',
|
||||
// 'about' => '',
|
||||
// 'Link:' => '',
|
||||
// 'This action will update Miniflux with the last development version, are you sure?' => '',
|
||||
);
|
||||
|
@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<section class="alert alert-error">
|
||||
<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>
|
||||
</section>
|
||||
<?php endif ?>
|
||||
|
10
templates/confirm_auto_update.php
Normal file
10
templates/confirm_auto_update.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user