xref: /webtrees/resources/views/admin/trees-check.phtml (revision e669bb4bc4fd05c009a4ba2795f411cb9d3260d7)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var array<string> $errors
10 * @var string        $more_url
11 * @var string        $title
12 * @var Tree          $tree
13 * @var array<string> $warnings
14 */
15
16?>
17
18<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
19
20<h1><?= $title ?></h1>
21
22<h2>
23    <?= I18N::translate('GEDCOM errors') ?>
24</h2>
25
26<ul class="list-group">
27    <?php foreach ($errors as $error) : ?>
28        <li class="list-group-item list-group-item-danger"><?= $error ?></li>
29    <?php endforeach ?>
30
31    <?php foreach ($warnings as $warning) : ?>
32        <li class="list-group-item list-group-item-warning"><?= $warning ?></li>
33    <?php endforeach ?>
34
35    <?php if ($errors === [] && $warnings === []) : ?>
36        <li class="list-group-item"><?= I18N::translate('No errors have been found.') ?></li>
37    <?php endif ?>
38</ul>
39
40<?php if ($more_url !== '') : ?>
41    <p>
42        <?= I18N::translate('The server’s time limit has been reached.') ?>
43        <a class="btn btn-primary" href="<?= e($more_url) ?>">
44            <?= I18N::translate('show more') ?>
45        </a>
46    </p>
47<?php endif ?>
48