总览在线/离线仅在非 0 时显示绿/红色。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 03:51:28 +08:00
parent 68357fc9c1
commit 17bb5462ec
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -380,10 +380,14 @@
'">' + '">' +
escapeHtml(label) + escapeHtml(label) +
"</span></td>" + "</span></td>" +
'<td class="status-on">' + '<td class="' +
(bucket.online > 0 ? "status-on" : "") +
'">' +
bucket.online + bucket.online +
"</td>" + "</td>" +
'<td class="status-off">' + '<td class="' +
(bucket.offline > 0 ? "status-off" : "") +
'">' +
bucket.offline + bucket.offline +
"</td>" + "</td>" +
"<td>" + "<td>" +
+1 -1
View File
@@ -14,6 +14,6 @@
<div id="overview-grid"></div> <div id="overview-grid"></div>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ url_for('static', filename='hub.js') }}?v=9"></script> <script src="{{ url_for('static', filename='hub.js') }}?v=10"></script>
<script>HubOverview.boot();</script> <script>HubOverview.boot();</script>
{% endblock %} {% endblock %}