summaryrefslogtreecommitdiff
path: root/resources/views/components/badge.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/components/badge.phtml')
-rw-r--r--resources/views/components/badge.phtml12
1 files changed, 5 insertions, 7 deletions
diff --git a/resources/views/components/badge.phtml b/resources/views/components/badge.phtml
index 29baaf8948..82a341c656 100644
--- a/resources/views/components/badge.phtml
+++ b/resources/views/components/badge.phtml
@@ -1,10 +1,8 @@
<?php use Fisharebest\Webtrees\I18N; ?>
-<?php if ($count > 0) : ?>
- <span class="badge badge-<?= $context ?? 'secondary' ?>">
+<span class="badge badge-<?= $context ?? 'secondary' ?>">
<?= I18N::number($count) ?>
- <?php if (($total ?? $count) > $count) : ?>
- / <?= I18N::number($total) ?>
- <?php endif ?>
- </span>
-<?php endif ?>
+ <?php if (($total ?? $count) > $count) : ?>
+ / <?= I18N::number($total) ?>
+ <?php endif ?>
+</span>