From 42b43e2e342f721289aa7a215864793d73c4c7e5 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 8 May 2023 20:41:17 +0530 Subject: [PATCH 1/3] replaced device type weight with device total weight #12286 --- netbox/templates/dcim/device.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 13d5f2a9410..e352f308fb6 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -314,7 +314,7 @@
Dimensions
Weight {% if object.device_type.weight %} - {{ object.device_type.weight|floatformat }} {{ object.device_type.get_weight_unit_display }} + {{ object.total_weight|floatformat }} {{ object.device_type.get_weight_unit_display }} {% else %} {{ ''|placeholder }} {% endif %} From aa13f45b78c6571e52c5b6bd41704226eec61b65 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 8 May 2023 20:43:50 +0530 Subject: [PATCH 2/3] replaced device type weight with device total weight #12286 --- netbox/templates/dcim/device.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index e352f308fb6..95a3fec8a6b 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -313,7 +313,7 @@
Dimensions
Weight - {% if object.device_type.weight %} + {% if object.total_weight %} {{ object.total_weight|floatformat }} {{ object.device_type.get_weight_unit_display }} {% else %} {{ ''|placeholder }} From 2e5d00ba3b71d3b6b7e409c5c853d915ecd86260 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Tue, 9 May 2023 18:36:53 +0530 Subject: [PATCH 3/3] Update netbox/templates/dcim/device.html Co-authored-by: Jeremy Stretch --- netbox/templates/dcim/device.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 95a3fec8a6b..aa1b80cf7a4 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -314,7 +314,7 @@
Dimensions
Weight {% if object.total_weight %} - {{ object.total_weight|floatformat }} {{ object.device_type.get_weight_unit_display }} + {{ object.total_weight|floatformat }} Kilograms {% else %} {{ ''|placeholder }} {% endif %}