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