{# status/widget.html — the unified Overview: host count + monitor health
(up/down/pending) + alerts link + problem list. Replaced the old fixed
top summary strip. #}
{% 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 }}