{#- The page head: the page title and, when there is a run, chips that name it, then the gaps and attack-surface callouts.
Needs: page_title, run (or None), pinned, now. -#}
{%- endif %}
{%- if is_stale(run.finished_at, now) %}
stale
{%- endif %}
{%- endif %}
{% if run and run.gaps %}
⚠ {%- set gaps = run.gaps | length %} incomplete: {{ gaps }} {{ gaps | plural("namespace or resource", "namespaces or resources") }} could not be listed
{%- for text in run.gaps %}
{{ text }}
{%- endfor %}
{% endif %}
{% if run %}
{%- set facts = (run.fact_sources or {}) | dictsort | selectattr("1", "in", ("forbidden", "partial", "error")) | list %}
{% if facts %}
⚠ attack-surface facts incomplete: {{ facts | length }} {{ facts | length | plural("source", "sources") }} could not be fully read