xref: /webtrees/resources/views/modules/recent_changes/changes-list.phtml (revision 54c7f8df0fc7bddb0bcc1441937c30320ca68563)
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