Improve updater
This commit is contained in:
parent
9e80ce02b1
commit
edee52227a
1 changed files with 15 additions and 13 deletions
|
@ -66,20 +66,22 @@ $page->navigation();
|
|||
|
||||
<?= $page->messages() ?>
|
||||
|
||||
<div class="ui segment">
|
||||
<h2 class="ui header"><?= __('Database migration') ?></h2>
|
||||
<p><?= __('Thank you for updating wishthis! To complete this update, some changes are required to the database structure.') ?></p>
|
||||
<?php if (-1 === version_compare($options->version, VERSION)) { ?>
|
||||
<div class="ui segment">
|
||||
<h2 class="ui header"><?= __('Database migration') ?></h2>
|
||||
<p><?= __('Thank you for updating wishthis! To complete this update, some changes are required to the database structure.') ?></p>
|
||||
|
||||
<form class="ui form" method="POST">
|
||||
<button class="ui orange button"
|
||||
type="submit"
|
||||
title="<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>"
|
||||
>
|
||||
<i class="upload icon"></i>
|
||||
<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<form class="ui form" method="POST">
|
||||
<button class="ui orange button"
|
||||
type="submit"
|
||||
title="<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>"
|
||||
>
|
||||
<i class="upload icon"></i>
|
||||
<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
|
Loading…
Reference in a new issue