From 20fb56424661da5f62c507e0afa475ca7bd6b21d Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 17 May 2026 21:07:15 +0200 Subject: [PATCH] feat(live-state): compact 4-col current + 5-col recent chips + N Recent trigger Co-Authored-By: Claude Sonnet 4.6 --- l4d2web/l4d2web/templates/_live_state.html | 44 ++++++++++++-------- l4d2web/tests/test_status_and_server_logs.py | 31 +++++++++++++- 2 files changed, 56 insertions(+), 19 deletions(-) diff --git a/l4d2web/l4d2web/templates/_live_state.html b/l4d2web/l4d2web/templates/_live_state.html index cc302ab..6695226 100644 --- a/l4d2web/l4d2web/templates/_live_state.html +++ b/l4d2web/l4d2web/templates/_live_state.html @@ -1,4 +1,9 @@ -

Live state

+{# Live-state partial — HTMX-polled into the state cluster on server_detail.html. + The parent .state-cluster section provides the heading context, so there is + no

here. Current players have no sub-header; they sit directly under + the summary line. Recent players' header is "N Recent" and doubles as the + modal trigger when N > 10. #} + {% if not snapshot or not snapshot_fresh %}

No data — server is not currently reporting.

{% else %} @@ -6,17 +11,14 @@ {{ snapshot.players }}/{{ snapshot.max_players }} {% if snapshot.hibernating %}· idle{% endif %} · {{ snapshot.map }} - - polled {{ snapshot.last_seen_at | timeago }} - + polled {{ snapshot.last_seen_at | timeago }}

{% endif %} {% if current_players %} -

Current players

-