10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 4*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm; 50c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 60c0910bfSGreg Roach 70c0910bfSGreg Roach?> 80c0910bfSGreg Roach 90c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 10dd6b2bfcSGreg Roach 11dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 12dd6b2bfcSGreg Roach 13dd6b2bfcSGreg Roach<?php if ($latest_version === '') : ?> 14dd6b2bfcSGreg Roach <div class="alert alert-warning"> 15dd6b2bfcSGreg Roach <?= I18N::translate('No upgrade information is available.') ?> 16dd6b2bfcSGreg Roach </div> 17dd6b2bfcSGreg Roach<?php elseif (version_compare($current_version, $latest_version) >= 0) : ?> 18dd6b2bfcSGreg Roach <div class="alert alert-info"> 19dd6b2bfcSGreg Roach <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?> 20dd6b2bfcSGreg Roach </div> 21dd6b2bfcSGreg Roach<?php else : ?> 22dd6b2bfcSGreg Roach <p> 23dd6b2bfcSGreg Roach <?= I18N::translate('A new version of webtrees is available.') ?> 24dd6b2bfcSGreg Roach </p> 25dd6b2bfcSGreg Roach 26dd6b2bfcSGreg Roach <p> 27dd6b2bfcSGreg Roach <?= I18N::translate('Depending on your server configuration, you may be able to upgrade automatically.') ?> 28dd6b2bfcSGreg Roach </p> 29dd6b2bfcSGreg Roach 30*4b3ef6caSGreg Roach <form method="post" action="<?= e(route(UpgradeWizardConfirm::class)) ?>" class="form-horizontal"> 31c06384d0SGreg Roach <?= csrf_field() ?> 32dd6b2bfcSGreg Roach 33dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary" name="continue" value="1"> 34dd6b2bfcSGreg Roach <?= I18N::translate('continue') ?> 35dd6b2bfcSGreg Roach </button> 36dd6b2bfcSGreg Roach </form> 37dd6b2bfcSGreg Roach<?php endif ?> 38