From 653452d66cab0a3c8350df42dd1f916eaad341c7 Mon Sep 17 00:00:00 2001 From: Renato Almeida de Oliveira Zaroubin Date: Thu, 1 May 2025 01:14:46 +0000 Subject: [PATCH 1/2] Add virtual chassis information to device template --- netbox/templates/dcim/device.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 8f27a5cc1de..e6179801345 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -26,6 +26,12 @@

{% trans "Device" %}

{% trans "Location" %} {% nested_tree object.location %} + {% if vc_members %} + + {% trans "Virtual Chassis" %} + {{ object.virtual_chassis|linkify }} + + {% endif %} {% trans "Rack" %} From 88985e2c374e19de5836c59782f8aa6fcd7ef173 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 14 May 2025 08:14:22 -0400 Subject: [PATCH 2/2] Address PR feedback --- netbox/templates/dcim/device.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index e6179801345..5bd73153578 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -26,11 +26,11 @@

{% trans "Device" %}

{% trans "Location" %} {% nested_tree object.location %} - {% if vc_members %} - - {% trans "Virtual Chassis" %} - {{ object.virtual_chassis|linkify }} - + {% if object.virtual_chassis %} + + {% trans "Virtual Chassis" %} + {{ object.virtual_chassis|linkify }} + {% endif %} {% trans "Rack" %}