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