xref: /webtrees/resources/views/modules/recent_changes/changes-list.phtml (revision bd77bf389a9b57f2cd2ff4371c57b8ed32028a48)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
4*bd77bf38SGreg Roachuse Illuminate\Support\Collection;
5*bd77bf38SGreg Roach
6*bd77bf38SGreg Roach/**
7*bd77bf38SGreg Roach * @var bool                 $show_user
8*bd77bf38SGreg Roach * @var Collection<stdClass> $rows
9*bd77bf38SGreg Roach */
10d70512abSGreg Roach
11d70512abSGreg Roach?>
12dd6b2bfcSGreg Roach
13*bd77bf38SGreg Roach<?php foreach ($rows as $row) : ?>
14*bd77bf38SGreg Roach    <a href="<?= e($row->record->url()) ?>" class="list_item name2">
15*bd77bf38SGreg Roach        <?= $row->record->fullName() ?>
16dd6b2bfcSGreg Roach    </a>
17*bd77bf38SGreg Roach
18dd6b2bfcSGreg Roach    <div class="indent mb-1">
19*bd77bf38SGreg Roach        <?php if ($row->record->lastChangeTimestamp()->unix() !== 0) : ?>
20dd6b2bfcSGreg Roach            <?php if ($show_user) : ?>
21*bd77bf38SGreg Roach                <?= /* I18N: [a record was] Changed on <date/time> by <user> */I18N::translate('Changed on %1$s by %2$s', view('components/datetime', ['timestamp' => $row->record->lastChangeTimestamp()]), e($row->record->lastChangeUser())) ?>
22dd6b2bfcSGreg Roach            <?php else : ?>
23*bd77bf38SGreg Roach                <?= /* I18N: [a record was] Changed on <date/time> */ I18N::translate('Changed on %1$s', view('components/datetime', ['timestamp' => $row->record->lastChangeTimestamp()])) ?>
24dd6b2bfcSGreg Roach            <?php endif ?>
25dd6b2bfcSGreg Roach        <?php endif ?>
26dd6b2bfcSGreg Roach    </div>
27dd6b2bfcSGreg Roach<?php endforeach ?>
28