10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 64b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm; 70c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 80c0910bfSGreg Roach 97c2c99faSGreg Roach/** 107c2c99faSGreg Roach * @var string $current_version 117c2c99faSGreg Roach * @var string $latest_version 127c2c99faSGreg Roach * @var string $title 137c2c99faSGreg Roach */ 147c2c99faSGreg Roach 150c0910bfSGreg Roach?> 160c0910bfSGreg Roach 170c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 18dd6b2bfcSGreg Roach 19dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach<?php if ($latest_version === '') : ?> 22dd6b2bfcSGreg Roach <div class="alert alert-warning"> 23dd6b2bfcSGreg Roach <?= I18N::translate('No upgrade information is available.') ?> 24dd6b2bfcSGreg Roach </div> 25dd6b2bfcSGreg Roach<?php elseif (version_compare($current_version, $latest_version) >= 0) : ?> 26dd6b2bfcSGreg Roach <div class="alert alert-info"> 27dd6b2bfcSGreg Roach <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach<?php else : ?> 30dd6b2bfcSGreg Roach <p> 31dd6b2bfcSGreg Roach <?= I18N::translate('A new version of webtrees is available.') ?> 32dd6b2bfcSGreg Roach </p> 33dd6b2bfcSGreg Roach 34dd6b2bfcSGreg Roach <p> 35dd6b2bfcSGreg Roach <?= I18N::translate('Depending on your server configuration, you may be able to upgrade automatically.') ?> 36dd6b2bfcSGreg Roach </p> 37dd6b2bfcSGreg Roach 384b3ef6caSGreg Roach <form method="post" action="<?= e(route(UpgradeWizardConfirm::class)) ?>" class="form-horizontal"> 39dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary" name="continue" value="1"> 40dd6b2bfcSGreg Roach <?= I18N::translate('continue') ?> 41dd6b2bfcSGreg Roach </button> 4281443e3cSGreg Roach 4381443e3cSGreg Roach <?= csrf_field() ?> 44dd6b2bfcSGreg Roach </form> 45dd6b2bfcSGreg Roach<?php endif ?> 46