{# monitors/widget.html — dashboard widget: unified monitor summary #} {% if not monitor_data and up == 0 and down == 0 and pending == 0 %}
No monitors configured. Add monitors →
{% else %}
{% if up %}
{{ up }} up
{% endif %} {% if down %}
{{ down }} down
{% endif %} {% if pending %}
{{ pending }} pending
{% endif %}
{% for d in monitor_data %} {% set latest = d.latest %}
{% if not latest %} {% elif latest.is_up %} {% else %}{% endif %} {% if d.monitor.host_id %} {{ d.monitor.name }} {% else %} {{ d.monitor.name }} {% endif %} {% if latest and latest.response_ms is not none %} {{ "%.0f"|format(latest.response_ms) }}ms {% elif latest and not latest.is_up %} {{ latest.status_code or "down" }} {% endif %}
{% endfor %}
{% endif %}