Просмотр исходного кода

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

Renato Almeida de Oliveira 9 месяцев назад
Родитель
Сommit
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">