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