diff --git a/host_agent/templates/settings_list.html b/host_agent/templates/settings_list.html index 73f72d1..63c33c1 100644 --- a/host_agent/templates/settings_list.html +++ b/host_agent/templates/settings_list.html @@ -15,12 +15,12 @@
-
+ style="display:flex;gap:0.75rem;align-items:flex-end;flex-wrap:wrap;"> +
-
+
@@ -28,12 +28,12 @@
-
- +
+
- + @@ -43,17 +43,21 @@ - {% else %} - + {% endfor %}
HostAgent versionDistroLast seenActionsLast seenActions
{{ item.reg.agent_version or "—" }} {{ item.reg.distro or "—" }} {{ item.reg.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") if item.reg.last_seen_at else "never" }} -
- +
+ + -
- + +
No hosts registered. Add one above.
No hosts registered. Add one above.
diff --git a/host_agent/templates/widget_table.html b/host_agent/templates/widget_table.html index 21d51d7..a646fad 100644 --- a/host_agent/templates/widget_table.html +++ b/host_agent/templates/widget_table.html @@ -1,19 +1,34 @@ - - - - - - {% for r in rows %} - - - - - - - - - {% else %} - - {% endfor %} - -
HostCPU %Mem %Disk % (worst)Load 1mLast seen
{{ r.host.name }}{{ "%.1f"|format(r.cpu_pct) if r.cpu_pct is not none else "—" }}{{ "%.1f"|format(r.mem_used_pct) if r.mem_used_pct is not none else "—" }}{{ "%.1f"|format(r.disk_worst) if r.disk_worst is not none else "—" }}{{ "%.2f"|format(r.load_1m) if r.load_1m is not none else "—" }}{{ r.reg.last_seen_at.strftime("%H:%M:%S") if r.reg.last_seen_at else "never" }}
No hosts with agent data yet.
+{# host_agent widget — fleet glance, flex rows (no header wrap) #} +{% if rows %} +
+ {% for r in rows %} + {% set stale = not r.reg.last_seen_at %} +
+ + + {{ r.host.name }} + + + {% if r.cpu_pct is not none %} + cpu {{ "%.0f"|format(r.cpu_pct) }}% + {% endif %} + {% if r.mem_used_pct is not none %} + mem {{ "%.0f"|format(r.mem_used_pct) }}% + {% endif %} + {% if r.disk_worst is not none %} + disk {{ "%.0f"|format(r.disk_worst) }}% + {% endif %} + {% if r.load_1m is not none %} + load {{ "%.2f"|format(r.load_1m) }} + {% endif %} + + + {{ r.reg.last_seen_at.strftime("%H:%M:%S") if r.reg.last_seen_at else "never" }} + +
+ {% endfor %} +
+{% else %} +

No hosts with agent data yet.

+{% endif %}