xref: /webtrees/resources/views/admin/upgrade/wizard.phtml (revision a04bb9a236e92915034f97b1229f5d47c9bc750f)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
9
10<h1><?= $title ?></h1>
11
12<?php if ($latest_version === '') : ?>
13    <div class="alert alert-warning">
14        <?= I18N::translate('No upgrade information is available.') ?>
15    </div>
16<?php elseif (version_compare($current_version, $latest_version) >= 0) : ?>
17    <div class="alert alert-info">
18        <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?>
19    </div>
20<?php else : ?>
21    <p>
22        <?= I18N::translate('A new version of webtrees is available.') ?>
23    </p>
24
25    <p>
26        <?= I18N::translate('Depending on your server configuration, you may be able to upgrade automatically.') ?>
27    </p>
28
29    <form method="post" action="<?= e(route('upgrade-confirm')) ?>" class="form-horizontal">
30        <?= csrf_field() ?>
31
32        <button type="submit" class="btn btn-primary" name="continue" value="1">
33            <?= I18N::translate('continue') ?>
34        </button>
35    </form>
36<?php endif ?>
37