summaryrefslogtreecommitdiff
path: root/resources/views/statistics/families/top10-nolist-grand.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/statistics/families/top10-nolist-grand.phtml')
-rw-r--r--resources/views/statistics/families/top10-nolist-grand.phtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/views/statistics/families/top10-nolist-grand.phtml b/resources/views/statistics/families/top10-nolist-grand.phtml
new file mode 100644
index 0000000000..6c58c6b868
--- /dev/null
+++ b/resources/views/statistics/families/top10-nolist-grand.phtml
@@ -0,0 +1,15 @@
+<?php
+declare(strict_types=1);
+
+use Fisharebest\Webtrees\Family;
+use Fisharebest\Webtrees\I18N;
+
+/* @var array $records */
+/* @var Family $family */
+?>
+
+<?php foreach ($records as $record): ?>
+ <?php $family = $record['family']; ?>
+ <a href="<?= e($family->url()) ?>"><?= $family->getFullName() ?></a>
+ - <?= I18N::plural('%s grandchild', '%s grandchildren', $record['count'], I18N::number($record['count'])) ?>
+<?php endforeach; ?>