{% set scope_label = (active_site_name or active_site) ~ ' · ' ~ active_site if active_site else _('All sites (aggregate)') %}
{{ scope_label }} {% if active_site %}{{ _('These totals cover this site only') }}{% else %}{{ _('These totals cover every site') }}{% endif %}
{{ _('Total Detections') }}
{{ stats.total_detections }}
{{ _('All time') }}
{{ _('Quarantined') }}
{{ stats.quarantined }}
{{ _('Active in quarantine') }}
{{ _('False Positives') }}
{{ stats.false_positives }}
{{ _('Marked by admin') }}
{{ _('Protection Rate') }}
{{ stats.protection_rate }}%
{{ _('Quarantined / Total') }}
{# Per-site breakdown. Every figure comes from the read model; a figure that is unknown renders as "-" and never as a zero the deployment did not actually measure. #}
{{ _('Per-site breakdown') }} {{ (active_site_name or active_site) if active_site else _('All sites (aggregate)') }}
{% if site_summaries %}
{% for site in site_summaries %} {% endfor %}
{{ _('Site') }} {{ _('Detections') }} {{ _('Quarantined') }} {{ _('Open') }} {{ _('Last detection') }} {{ _('Top profile') }} {{ _('Memory shell suspects') }}
{% if site.site_id == 'legacy' %} {{ _('Unassigned') }} {% else %} {{ site.site_name }} {{ site.site_id }} {% endif %} {{ site.total_detections }} {{ site.quarantined }} {{ site.open_suspicious }} {{ site.last_detection or '-' }} {% if site.top_profile %} {{ site.top_profile.tool_signature or site.top_profile.profile_id }} {{ site.top_profile.risk_score }}% {% else %}-{% endif %} {% if site.memory_shell_suspects is none %}-{% else %}{{ site.memory_shell_suspects }}{% endif %}
{% else %}

{{ _('No site data is available') }}

{% endif %}