From 871060fcc0391a0887a60260c295a1266b0b5534 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 7 Jul 2016 13:39:54 -0400 Subject: [PATCH] Fixes #228: Correct conditional inclusion of device bays --- netbox/templates/dcim/devicetype.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/devicetype.html b/netbox/templates/dcim/devicetype.html index 79246046c9b..f3ae5aa78ab 100644 --- a/netbox/templates/dcim/devicetype.html +++ b/netbox/templates/dcim/devicetype.html @@ -81,7 +81,7 @@

{{ devicetype }}

{% include 'dcim/inc/devicetype_component_table.html' with table=powerport_table title='Power Ports' add_url='dcim:devicetype_add_powerport' delete_url='dcim:devicetype_delete_powerport' %}
- {% if devicetype.is_network_device %} + {% if devicetype.is_parent_device %} {% include 'dcim/inc/devicetype_component_table.html' with table=devicebay_table title='Device Bays' add_url='dcim:devicetype_add_devicebay' delete_url='dcim:devicetype_delete_devicebay' %} {% endif %} {% if devicetype.is_network_device %}