From 716e12962725b7d5cd53fc521b78eb3d9421c48c Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 4 Oct 2016 10:17:56 -0400 Subject: [PATCH] Fixes #591: Correct display of component creation buttons in device type view --- netbox/netbox/settings.py | 2 +- .../dcim/inc/devicetype_component_table.html | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index c1f3bcae353..cd75c2017fe 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -12,7 +12,7 @@ "the documentation.") -VERSION = '1.6.2' +VERSION = '1.6.2-r1' # Import local configuration for setting in ['ALLOWED_HOSTS', 'DATABASE', 'SECRET_KEY']: diff --git a/netbox/templates/dcim/inc/devicetype_component_table.html b/netbox/templates/dcim/inc/devicetype_component_table.html index 7b2b146529a..6cdb1562b31 100644 --- a/netbox/templates/dcim/inc/devicetype_component_table.html +++ b/netbox/templates/dcim/inc/devicetype_component_table.html @@ -15,19 +15,20 @@ {% endif %} {% render_table table 'table.html' %} - {% if table.rows %} - {% else %}