QoL 63: counts in menus, tabs, list headers and the list footer have a thousands separator, as the dashboard, reports and audit log already did

This commit is contained in:
johnnyq
2026-11-21 02:29:20 -05:00
parent 9a58e2b315
commit c094f97eed
51 changed files with 105 additions and 104 deletions

View File

@@ -358,9 +358,9 @@ if (!$config_module_enable_ticketing) {
<span class="me-auto">
<strong>Mail Queue</strong>
<span class="text-body-secondary">- <?= $mail_queue['last_sent'] ? 'last sent ' . escapeHtml(timeAgo($mail_queue['last_sent'])) : 'nothing sent yet' ?></span>
<?php if ($mail_queue['waiting']) { ?><span class="badge rounded-pill text-bg-primary ms-1"><?= $mail_queue['waiting'] ?> waiting</span><?php } ?>
<?php if ($mail_queue['retrying']) { ?><span class="badge rounded-pill text-bg-warning ms-1"><?= $mail_queue['retrying'] ?> retrying</span><?php } ?>
<?php if ($mail_queue['failed_day']) { ?><span class="badge rounded-pill text-bg-danger ms-1"><?= $mail_queue['failed_day'] ?> failed in the last day</span><?php } ?>
<?php if ($mail_queue['waiting']) { ?><span class="badge rounded-pill text-bg-primary ms-1"><?= number_format(intval($mail_queue['waiting'])) ?> waiting</span><?php } ?>
<?php if ($mail_queue['retrying']) { ?><span class="badge rounded-pill text-bg-warning ms-1"><?= number_format(intval($mail_queue['retrying'])) ?> retrying</span><?php } ?>
<?php if ($mail_queue['failed_day']) { ?><span class="badge rounded-pill text-bg-danger ms-1"><?= number_format(intval($mail_queue['failed_day'])) ?> failed in the last day</span><?php } ?>
</span>
<a class="btn btn-sm btn-outline-secondary" href="mail_queue.php<?= $mail_queue['failed_day'] ? '?show=failed' : '' ?>">Open the Mail Queue</a>
</div>