From 946f35335bd72dbfadc555beba5c66e33e099478 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 30 Sep 2022 08:47:34 -0700 Subject: [PATCH] 8424 change template --- netbox/templates/dcim/device.html | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 6cc859749..2be860c62 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -7,7 +7,7 @@ {% block content %}
-
+
Device @@ -152,8 +152,7 @@ {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% plugin_left_page object %} -
-
+
Management
@@ -286,7 +285,31 @@
{% include 'inc/panels/contacts.html' %} {% include 'inc/panels/image_attachments.html' %} - {% plugin_right_page object %} +
+
+
+ +
+ {% if object.rack %} +
+
+
+

Front

+ {% include 'dcim/inc/rack_elevation.html' with object=object.rack face='front' extra_params=svg_extra %} +
+
+
+
+

Rear

+ {% include 'dcim/inc/rack_elevation.html' with object=object.rack face='rear' extra_params=svg_extra %} +
+
+
+ {% endif %}