xref: /webtrees/resources/views/modules/top10_pageviews/list.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1380303edSGreg Roach<?php
2380303edSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5380303edSGreg Roachuse Fisharebest\Webtrees\I18N;
6380303edSGreg Roach
77c2c99faSGreg Roach/**
87c2c99faSGreg Roach * @var array<string,mixed> $results
97c2c99faSGreg Roach */
107c2c99faSGreg Roach
11380303edSGreg Roach?>
12380303edSGreg Roach<ul class="list-unstyled">
13380303edSGreg Roach    <?php foreach ($results as $result) : ?>
14380303edSGreg Roach        <li>
154ab569c4SGreg Roach            <span class="badge bg-secondary"><?= I18N::number($result['count']) ?></span>
16380303edSGreg Roach            <a href="<?= e($result['record']->url()) ?>">
17380303edSGreg Roach                <?= $result['record']->fullName() ?>
18380303edSGreg Roach            </a>
19380303edSGreg Roach        </li>
20380303edSGreg Roach    <?php endforeach ?>
21380303edSGreg Roach</ul>
22