Improve mobile fleet layout

This commit is contained in:
benya
2026-06-05 21:04:59 +03:00
parent 6af006f867
commit 34243b06fa
4 changed files with 160 additions and 8 deletions
+8 -2
View File
@@ -606,8 +606,14 @@ function renderDevices() {
<span>${escapeHtml(deviceModel(device))}</span>
<small>${escapeHtml([device.group || "", ...(device.tags || [])].filter(Boolean).join(" / ") || "Без группы")}</small>
</div>
<span class="wan-state ${wan.className}">${escapeHtml(wan.label)}</span>
<span class="client-count">${clients.total}</span>
<div class="device-field">
<span class="device-field-label">WAN</span>
<span class="wan-state ${wan.className}">${escapeHtml(wan.label)}</span>
</div>
<div class="device-field">
<span class="device-field-label">Clients</span>
<span class="client-count">${clients.total}</span>
</div>
<span class="${device.active_alerts ? "problem-count has-problems" : "problem-count"}">
${device.active_alerts ? `${device.active_alerts} активн.` : "Нет"}
</span>