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