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 @@
| 楼栋/机柜 | 设备名称 | 型号 | -楼栋/机柜 | 主IP | 主序列号 | 状态 | @@ -102,16 +102,16 @@
|---|---|---|---|---|---|---|
|
- {{ 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 %} |