xref: /webtrees/resources/views/modules/top10_pageviews/list.phtml (revision 5062b1ca554e9384a3865a8ed7fa201483b30720)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var array<string,mixed> $results
7 */
8
9?>
10<ul class="list-unstyled">
11    <?php foreach ($results as $result) : ?>
12        <li>
13            <span class="badge badge-secondary"><?= I18N::number($result['count']) ?></span>
14            <a href="<?= e($result['record']->url()) ?>">
15                <?= $result['record']->fullName() ?>
16            </a>
17        </li>
18    <?php endforeach ?>
19</ul>
20