{# Above-the-fold triage strip: the four "act now" signals the operator needs at a glance — posture grade, active malicious/suspicious findings, and whether the monitor is even running. Each segment links to the section that explains it. Mirrors the grade palette in _risk.html. #} {% set grade_styles = { 'A': 'text-emerald-300 border-emerald-800 bg-emerald-900/30', 'B': 'text-lime-300 border-lime-800 bg-lime-900/30', 'C': 'text-amber-300 border-amber-800 bg-amber-900/30', 'D': 'text-orange-300 border-orange-800 bg-orange-900/30', 'F': 'text-red-300 border-red-800 bg-red-900/30', } %}
{# ----- posture grade ----- #} {% if risk %} {% set gstyle = grade_styles.get(risk.grade, grade_styles['F']) %}
{{ risk.grade }}
posture
{{ risk.score }} / 100
{% else %}
posture
pending
{% endif %}
{# ----- active malicious ----- #}
active malicious
{{ active_malicious }}
{# ----- active suspicious ----- #}
active suspicious
{{ active_suspicious }}
{# ----- monitor status ----- #}
monitor
{% if alive %}
online
{% else %}
offline
{% endif %}