From e2b2815545e3f69ce3a63758dd7b9f1b875f65c7 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 %}