xref: /webtrees/resources/views/admin/trees-check.phtml (revision 600daa5d4fa729dbec2d21fb3adffed0ae6efda9)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees', ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
9
10<h1><?= $title ?></h1>
11
12<ul class="list-group">
13    <li class="list-group-item">
14        <strong><?= I18N::translate('GEDCOM errors') ?></strong>
15    </li>
16
17    <?php foreach ($errors as $error) : ?>
18        <li class="list-group-item list-group-item-danger"><?= $error ?></li>
19    <?php endforeach ?>
20
21    <?php foreach ($warnings as $warning) : ?>
22        <li class="list-group-item list-group-item-warning"><?= $warning ?></li>
23    <?php endforeach ?>
24
25    <?php if ($errors === [] && $warnings === []) : ?>
26        <li class="list-group-item"><?= I18N::translate('No errors have been found.') ?></li>
27    <?php endif ?>
28</ul>
29