From 17e14e76084a427f2a9e09ad28e6ca986d553e8b Mon Sep 17 00:00:00 2001 From: xiaji Date: Tue, 19 May 2026 16:17:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A5=BC=E6=A0=8B/=E6=9C=BA=E6=9F=9C?= =?UTF-8?q?=E5=88=97=E8=B0=83=E6=95=B4=E4=B8=BA=E8=A1=A8=E6=A0=BC=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/device_management/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/device_management/templates/device_management/index.html b/device_management/templates/device_management/index.html index c70d1bb..e1eb934 100644 --- a/device_management/templates/device_management/index.html +++ b/device_management/templates/device_management/index.html @@ -88,9 +88,9 @@ + - @@ -102,16 +102,16 @@ {% for device in devices %} - - + +
楼栋/机柜 设备名称 型号楼栋/机柜 主IP 主序列号 状态
-
{{ device.device_name }}
-
{{ device.brand|default:"" }}
-
{{ device.model|default:"-" }} {{ device.building|default:"-" }} {% if device.cabinet %} / {{ device.cabinet }}{% endif %} {% if device.floor %} {{ device.floor }}{% endif %} +
{{ device.device_name }}
+
{{ device.brand|default:"" }}
+
{{ device.model|default:"-" }} {% with primary_ip=device.ips.all|first %} {% if primary_ip and primary_ip.is_primary %}