{# http/rows.html — HTMX fragment for HTTP monitor status list #} {# ── Summary ─────────────────────────────────────────────────────────────── #}
Up
{{ up }}
Down
{{ down }}
Monitors
{{ monitor_data | length }}
{# ── Monitor list ─────────────────────────────────────────────────────────── #} {% if monitor_data %}
{% for item in monitor_data %} {% set m = item.monitor %} {% set latest = item.latest %} {% endfor %}
Monitor Status Response History TLS expiry
{{ m.name }}
{{ m.method }} {{ m.url }}
{% if not m.enabled %} paused {% endif %}
{% if not latest %} pending {% elif latest.is_up %}
{{ latest.status_code }}
{% else %}
{{ latest.status_code or latest.error_msg or "error" }}
{% if latest.content_matched == false %}
content mismatch
{% endif %} {% endif %}
{% if latest and latest.response_ms is not none %} {{ "%.0f" | format(latest.response_ms) }}ms {% else %} {% endif %} {{ item.sparkline_ms | safe }} {% if item.tls_days is not none %} {{ item.tls_days | int }}d {% elif m.url.startswith('https://') %} {% endif %}
{% else %}
No monitors configured yet. Add one using the form above.
{% endif %}