From 69f6c9ca0751e55ec6e751efb54c52df56818cda Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 28 Sep 2017 10:21:41 -0400 Subject: [PATCH] Fixes #1542: Added cluster field to device view --- netbox/templates/dcim/device.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 18e14b5e0..9625a002c 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -155,6 +155,18 @@ {% endif %} + {% if device.cluster %} + + Cluster + + {% if device.cluster.group %} + {{ device.cluster.group }} + + {% endif %} + {{ device.cluster }} + + + {% endif %} {% with device.get_custom_fields as custom_fields %}