{# status/widget.html — the unified Overview: host count + monitor health (up/down/pending) + alerts link + problem list. Replaced the old fixed top summary strip. #}
{% if session.user_id %}{% endif %} {{ total_hosts }}host{{ '' if total_hosts == 1 else 's' }} {% if session.user_id %}{% endif %} {{ up }}up {{ down }}down {{ pending }}pending {% if session.user_id %}Alerts →{% endif %}
{% set problems = entries | rejectattr("status", "equalto", "up") | list %} {% if not entries %}

No monitors configured.

{% elif not problems %}
✓ All {{ up }} monitors are up.
{% else %}
{% for e in problems[:8] %}
{% set nm_style = "flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" %} {# Link to the monitor's own detail view for logged-in users; plain text on the public share view. #} {% if session.user_id and e.detail_url %} {{ e.name }} {% else %} {{ e.name }} {% endif %} {{ e.kind }} {{ e.status }}
{% endfor %} {% if problems|length > 8 %}
+{{ problems|length - 8 }} more…
{% endif %}
{% endif %}