{% extends 'base/layout.html' %} {% load i18n l10n static %} {% block title %}Compliance Report{% endblock %} {% block head %} {% endblock head %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block content %} {# Export buttons #}
Export CSV Export JSON
{# Score overview #}

{{ report.compliance_score }}%

Compliance Score

{{ report.total_certificates }}

Certificates

{{ report.passed_checks }}

Passed

{{ report.failed_checks }}

Failed
{# Severity breakdown #}
Failures by Severity
{% if report.severity_breakdown %} {% for item in report.severity_breakdown %}
{{ item.severity|capfirst }} {{ item.count }}
{% endfor %} {% else %}

No compliance failures.

{% endif %}
{# Policy type breakdown #}
Failures by Policy Type
{% if report.policy_breakdown %} {% for item in report.policy_breakdown %} {% endfor %}
Policy TypeFailures
{{ item.policy_type|default:"—" }} {{ item.count }}
{% else %}

All policies passing.

{% endif %}
{# Trend chart #}
Compliance Trend (90 days)
{% if trend_bars %} {% for bar in trend_bars %}
{{ bar.label }}
{% if bar.pct > 20 %}{{ bar.score|floatformat:0 }}%{% endif %}
{% if bar.pct <= 20 %}{{ bar.score|floatformat:0 }}%{% endif %}
{% endfor %} {% else %}

No trend data available. Run compliance checks to generate snapshots.

{% endif %}
{% endblock content %}