xref: /webtrees/resources/views/admin/trees-check.phtml (revision 1bdbe4be8b89ea7a9cca535712d11b03e44ed743)
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        $title
11 * @var Tree          $tree
12 * @var array<string> $warnings
13 */
14
15?>
16
17<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
18
19<h1><?= $title ?></h1>
20
21<ul class="list-group">
22    <li class="list-group-item">
23        <strong><?= I18N::translate('GEDCOM errors') ?></strong>
24    </li>
25
26    <?php foreach ($errors as $error) : ?>
27        <li class="list-group-item list-group-item-danger"><?= $error ?></li>
28    <?php endforeach ?>
29
30    <?php foreach ($warnings as $warning) : ?>
31        <li class="list-group-item list-group-item-warning"><?= $warning ?></li>
32    <?php endforeach ?>
33
34    <?php if ($errors === [] && $warnings === []) : ?>
35        <li class="list-group-item"><?= I18N::translate('No errors have been found.') ?></li>
36    <?php endif ?>
37</ul>
38