Improve updater

This commit is contained in:
grandeljay 2022-11-29 12:02:29 +01:00
parent 9e80ce02b1
commit edee52227a

View file

@ -66,20 +66,22 @@ $page->navigation();
<?= $page->messages() ?> <?= $page->messages() ?>
<div class="ui segment"> <?php if (-1 === version_compare($options->version, VERSION)) { ?>
<h2 class="ui header"><?= __('Database migration') ?></h2> <div class="ui segment">
<p><?= __('Thank you for updating wishthis! To complete this update, some changes are required to the database structure.') ?></p> <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"> <form class="ui form" method="POST">
<button class="ui orange button" <button class="ui orange button"
type="submit" type="submit"
title="<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>" title="<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>"
> >
<i class="upload icon"></i> <i class="upload icon"></i>
<?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?> <?= sprintf(__('Migrate to %s'), 'v' . VERSION) ?>
</button> </button>
</form> </form>
</div> </div>
<?php } ?>
</div> </div>
</main> </main>