{% if summary.top_risks %}
{% for r in summary.top_risks %}
{% set sev_color = '#f87171' if r.severity == 'CRITICAL' else '#fb923c' if r.severity == 'HIGH' else '#fbbf24' if r.severity == 'MEDIUM' else '#4ade80' %}
{{ r.title }}
Owner: {{ r.owner }}
{{ r.severity }}
{% endfor %}
{% else %}
No open risks registered.
{% endif %}
๐ก Top Threats
{% if summary.top_threats %}
{% for t in summary.top_threats %}
{% set sev_color = '#f87171' if t.severity == 'CRITICAL' else '#fb923c' if t.severity == 'HIGH' else '#fbbf24' if t.severity == 'MEDIUM' else '#4ade80' %}
{{ t.title }}
{{ t.category }}
{{ t.severity }}
{% endfor %}
{% else %}
No threat model generated yet.
{% endif %}
โ Key Strengths
{% if summary.key_strengths %}
{% for s in summary.key_strengths %}
โ{{ s }}
{% endfor %}
{% else %}
Run an assessment to identify strengths.
{% endif %}
๐จ Critical Gaps
{% if summary.critical_gaps %}
{% for gap in summary.critical_gaps %}
โ{{ gap }}
{% endfor %}
{% else %}
โ No critical gaps detected.
{% endif %}
๐ง Recommended Actions
{% if summary.recommended_actions %}
{% for action in summary.recommended_actions %}
{{ action }}
{% endfor %}
{% else %}
โ No critical actions required. Run an assessment for a full review.
{% endif %}
๐ ATO by Framework
{% for fw, fw_data in ato.by_framework.items() %}
{% set pct = (fw_data.passed / fw_data.total * 100)|round(0)|int if fw_data.total else 0 %}
{{ fw }}{{ pct }}%
{% endfor %}
๐ Regulatory by Framework
{% for fw, fw_data in reg.by_framework.items() %}
{% set pct = (fw_data.compliant / fw_data.total * 100)|round(0)|int if fw_data.total else 0 %}