{% set axes = [
('inspections', 'Inspections / month', plan_info.max_inspections_month),
('issues', 'Issues / month', plan_info.max_issues_month),
('users', 'Active Users (total)', plan_info.max_users),
('facilities', 'Active Facilities (total)', plan_info.max_facilities),
] %}
{% for key, label, limit in axes %}
{# None = the counter failed (logged server-side). Rendered as "—"
rather than 0 so an unknown count is never mistaken for real usage. #}
{% set current = quota_usage.get(key) %}
{% set unknown = current is none %}
{% set pct = ((current / limit * 100) | int) if (limit and not unknown) else 0 %}
{% set over = limit and not unknown and current >= limit %}
{{ label }}
{% if unknown %}
—
{% else %}{{ current }}{% endif %}{% if limit %} / {{ limit }}{% else %} / unlimited{% endif %}
{% if limit and not unknown %}
{% endif %}
{% endfor %}