{% load pr_format %}
{% if fresh.last_scan_status %}
{% if fresh.stale %}
Stale: last complete scan {{ fresh.last_success_at|ago }}
{% else %}
Scanned {{ fresh.last_success_at|ago }}
{% endif %}
{% if fresh.last_scan_status != "complete" %}
Last scan {{ fresh.last_scan_status }}
{% endif %}
{% else %}
No scan yet
{% endif %}
{% if fresh.restricted_process_count or fresh.unknown_owner_count %}
Limited visibility
{% endif %}
{% if pr_docker %}
Docker: {{ pr_docker.state }}
{% endif %}