瀏覽代碼

Closes: #19200 Add Virtual Chassis name to pane on Device View (#19369)

Renato Almeida de Oliveira 11 月之前
父節點
當前提交
1700a9265c
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      netbox/templates/dcim/device.html

+ 6 - 0
netbox/templates/dcim/device.html

@@ -26,6 +26,12 @@
                         <th scope="row">{% trans "Location" %}</th>
                         <td>{% nested_tree object.location %}</td>
                     </tr>
+                    {% if object.virtual_chassis %}
+                      <tr>
+                        <th scope="row">{% trans "Virtual Chassis" %}</th>
+                        <td>{{ object.virtual_chassis|linkify }}</td>
+                      </tr>
+                    {% endif %}
                     <tr>
                         <th scope="row">{% trans "Rack" %}</th>
                         <td class="d-flex justify-content-between align-items-start">