{% comment %} Reachability badge for a system-default model. Expects `h` = one entry from the `model_health` dict (keys: configured, ok, detail, latency_ms). Renders nothing when the role is absent from model_health (probe failed entirely). Text-only badges to match the existing dashboard palette (no emoji per house HTML rule). {% endcomment %} {% if h %} {% if not h.configured %} NOT CONFIGURED {% elif h.ok %} REACHABLE {% if h.latency_ms is not None %}{{ h.latency_ms }} ms{% endif %} {% else %} NOT RESPONDING {{ h.detail }} {% endif %} {% endif %}