Skip to content

Commit

Permalink
Fix: #4681 - missing totals in tag-cloud lists
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Dec 23, 2022
1 parent 873d8d1 commit c8e2627
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/lists/surnames-tag-cloud.phtml
Expand Up @@ -10,7 +10,7 @@ use Fisharebest\Webtrees\Tree;

/**
* @var IndividualListModule|null $module
* @var array<array<string>> $surnames
* @var array<array<int>> $surnames
* @var bool $totals
* @var Tree $tree
*/
Expand All @@ -34,6 +34,10 @@ $minimum = min(array_map(static fn (array $x): int => min($x), $surnames));
$label = I18N::translate('No surname');
}

if ($totals) {
$label = I18N::translate('%1$s (%2$s)', $label, I18N::number($count));
}

?>
<?php if ($module instanceof ModuleListInterface) : ?>
<a class="ut" style="font-size:<?= $size ?>rem" href="<?= e($module->listUrl($tree, ['surname' => $surn])) ?>">
Expand Down

0 comments on commit c8e2627

Please sign in to comment.