{# Health pill partial. Rendered both inline (base.html include) and by the GET /health-pill HTMX poll. `health` is the raw /health dict, or a synthetic {"status": "unreachable", ...} shape when the API can't be reached. #} {% set ok = health.get("status") == "healthy" %} {{ health.get("status", "unknown") }} {% if health.get("surface_version") %} {# Cortex SURFACE version — global, not the selected project. #} Cortex {{ health.get("surface_version") | replace("kaidera-os-", "") }} {% endif %}