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