{# Global header pill summarising the latest verify run. Context: `verify_pill_status` (str: ok|warn|fail|stale|grey), `verify_pill_label` (str: timestamp or "never run"). The pill labels are explicit ("Data check: …") so a first-time user can tell from the header alone that this is a self-audit, not an action they need to take. The tooltip carries the verbose run summary. #} {% set _verify_tip = { "ok": "All internal checks passed. Click for details.", "warn": "Verification reported warnings — click for details.", "fail": "Verification reported failures — click for details.", "stale": "Last verification is more than 24h old. Click to re-run.", "grey": "No verification run yet. Click to run.", }[verify_pill_status] %} {% if verify_pill_status == "ok" %} Data check: OK {% elif verify_pill_status == "warn" %} Data check: warnings {% elif verify_pill_status == "fail" %} Data check: failed {% elif verify_pill_status == "stale" %} Data check: stale {% else %} Data check: not run{% endif %}