xref: /webtrees/resources/views/modules/recent_changes/changes-list.phtml (revision 01cccaa9b32930a9abd41484566fc39269a168b4)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<?php foreach ($records as $record) : ?>
8    <a href="<?= e($record->url()) ?>" class="list_item name2">
9        <?= $record->fullName() ?>
10    </a>
11    <div class="indent mb-1">
12        <?php if ($record->lastChangeTimestamp()->unix() !== 0) : ?>
13            <?php if ($show_user) : ?>
14                <?= /* I18N: [a record was] Changed on <date/time> by <user> */I18N::translate('Changed on %1$s by %2$s', view('components/datetime', ['timestamp' => $record->lastChangeTimestamp()]), e($record->lastChangeUser())) ?>
15            <?php else : ?>
16                <?= /* I18N: [a record was] Changed on <date/time> */ I18N::translate('Changed on %1$s', view('components/datetime', ['timestamp' => $record->lastChangeTimestamp()])) ?>
17            <?php endif ?>
18        <?php endif ?>
19    </div>
20<?php endforeach ?>
21