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