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

@@ -239,7 +239,7 @@ while ($license_type_row = mysqli_fetch_row($sql_license_types)) {
<div class="card-header py-2 itflow-asset-tabs">
<nav class="nav nav-pills flex-nowrap overflow-auto">
<a class="nav-link text-nowrap <?= $status === '' ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&status=">
All <span class="badge rounded-pill ms-1"><?= $tab_counts[''] ?></span>
All <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[''])) ?></span>
</a>
<?php foreach ($status_filters as $status_key => $status_filter) {
if (!$tab_counts[$status_key] && $status !== $status_key) {
@@ -247,7 +247,7 @@ while ($license_type_row = mysqli_fetch_row($sql_license_types)) {
}
$tab_tone = ['expired' => 'danger', 'over' => 'danger', 'renewing' => 'warning'][$status_key] ?? ''; ?>
<a class="nav-link text-nowrap <?= $status === $status_key ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&status=<?= $status_key ?>" title="<?= $status_filter['title'] ?>">
<i class="fas fa-fw <?= $status_filter['icon'] ?> me-1 <?= $tab_tone && $status !== $status_key ? "text-$tab_tone" : '' ?>"></i><?= $status_filter['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab_counts[$status_key] ?></span>
<i class="fas fa-fw <?= $status_filter['icon'] ?> me-1 <?= $tab_tone && $status !== $status_key ? "text-$tab_tone" : '' ?>"></i><?= $status_filter['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[$status_key])) ?></span>
</a>
<?php } ?>
</nav>