xref: /webtrees/resources/views/fact-edit-links.phtml (revision 0db1e7d20bab9209012a4f3fdc1af3ef87a1a528)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6
7/**
8 * @var Fact        $fact
9 * @var string|null $url
10 */
11
12?>
13<?php if ($fact->canEdit()) : ?>
14    <div class="pt-2 wt-fact-edit-links">
15        <?= view('edit/icon-fact-edit', ['fact' => $fact, 'url' => $url ?? null]) ?>
16        <?= view('edit/icon-fact-copy', ['fact' => $fact]) ?>
17        <?= view('edit/icon-fact-delete', ['fact' => $fact]) ?>
18    </div>
19<?php endif ?>
20