diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index 2d8195f85..1802d5c90 100644 --- a/netbox/dcim/tables.py +++ b/netbox/dcim/tables.py @@ -15,7 +15,7 @@ from .models import ( MPTT_LINK = """ {% if record.get_children %} - + {% else %} {% endif %} @@ -44,7 +44,7 @@ DEVICE_LINK = """ RACKGROUP_ELEVATIONS = """ - + """ @@ -58,19 +58,19 @@ DEVICE_COUNT = """ RACKRESERVATION_ACTIONS = """ - + {% if perms.dcim.change_rackreservation %} - + {% endif %} """ MANUFACTURER_ACTIONS = """ - + {% if perms.dcim.change_manufacturer %} - + {% endif %} """ @@ -84,10 +84,10 @@ DEVICEROLE_VM_COUNT = """ DEVICEROLE_ACTIONS = """ - + {% if perms.dcim.change_devicerole %} - + {% endif %} """ diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index 5e38bea71..173b1db49 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -253,7 +253,7 @@ class ConsolePortTable(DeviceComponentTable, PathEndpointTable): class DeviceConsolePortTable(ConsolePortTable): name = tables.TemplateColumn( - template_code=' {{ value }}' + template_code=' {{ value }}' ) actions = ButtonsColumn( model=ConsolePort, @@ -285,7 +285,7 @@ class ConsoleServerPortTable(DeviceComponentTable, PathEndpointTable): class DeviceConsoleServerPortTable(ConsoleServerPortTable): name = tables.TemplateColumn( - template_code=' {{ value }}' + template_code=' {{ value }}' ) actions = ButtonsColumn( model=ConsoleServerPort, @@ -320,7 +320,7 @@ class PowerPortTable(DeviceComponentTable, PathEndpointTable): class DevicePowerPortTable(PowerPortTable): name = tables.TemplateColumn( - template_code=' {{ value }}' + template_code=' {{ value }}' ) actions = ButtonsColumn( model=PowerPort, @@ -362,7 +362,7 @@ class PowerOutletTable(DeviceComponentTable, PathEndpointTable): class DevicePowerOutletTable(PowerOutletTable): name = tables.TemplateColumn( - template_code=' {{ value }}' + template_code=' {{ value }}' ) actions = ButtonsColumn( model=PowerOutlet, @@ -415,8 +415,8 @@ class InterfaceTable(DeviceComponentTable, BaseInterfaceTable, PathEndpointTable class DeviceInterfaceTable(InterfaceTable): name = tables.TemplateColumn( - template_code=' {{ value }}' ) lag = tables.Column( @@ -466,7 +466,7 @@ class FrontPortTable(DeviceComponentTable, CableTerminationTable): class DeviceFrontPortTable(FrontPortTable): name = tables.TemplateColumn( - template_code=' ' + template_code=' ' '{{ value }}' ) actions = ButtonsColumn( @@ -503,7 +503,7 @@ class RearPortTable(DeviceComponentTable, CableTerminationTable): class DeviceRearPortTable(RearPortTable): name = tables.TemplateColumn( - template_code=' ' + template_code=' ' '{{ value }}' ) actions = ButtonsColumn( @@ -544,7 +544,7 @@ class DeviceBayTable(DeviceComponentTable): class DeviceDeviceBayTable(DeviceBayTable): name = tables.TemplateColumn( - template_code=' {{ value }}' ) actions = ButtonsColumn( diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index d0a316a3f..b173ee6c1 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -1,7 +1,7 @@ CABLETERMINATION = """ {% if value %} {{ value.parent }} - + {{ value }} {% else %} — @@ -52,7 +52,7 @@ INTERFACE_TAGGED_VLANS = """ MPTT_LINK = """ {% if record.get_children %} - + {% else %} {% endif %} @@ -63,19 +63,19 @@ MPTT_LINK = """ POWERFEED_CABLE = """ {{ value }} - + """ POWERFEED_CABLETERMINATION = """ {{ value.parent }} - + {{ value }} """ RACKGROUP_ELEVATIONS = """ - + """ @@ -90,12 +90,12 @@ UTILIZATION_GRAPH = """ CONSOLEPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %}