xref: /webtrees/resources/views/modules/top10_pageviews/list.phtml (revision afa67798854828b1edc33dd077960ec2b18e6140)
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