diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py index e0948063f..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,7 +58,7 @@ DEVICE_COUNT = """ RACKRESERVATION_ACTIONS = """ - + {% if perms.dcim.change_rackreservation %} @@ -67,7 +67,7 @@ RACKRESERVATION_ACTIONS = """ MANUFACTURER_ACTIONS = """ - + {% if perms.dcim.change_manufacturer %} @@ -84,7 +84,7 @@ DEVICEROLE_VM_COUNT = """ DEVICEROLE_ACTIONS = """ - + {% if perms.dcim.change_devicerole %} 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 a59a92ab6..aea5aeafe 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,7 +90,7 @@ UTILIZATION_GRAPH = """ CONSOLEPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} @@ -108,7 +108,7 @@ CONSOLEPORT_BUTTONS = """ CONSOLESERVERPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} @@ -126,7 +126,7 @@ CONSOLESERVERPORT_BUTTONS = """ POWERPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} @@ -143,7 +143,7 @@ POWERPORT_BUTTONS = """ POWEROUTLET_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} @@ -159,7 +159,7 @@ INTERFACE_BUTTONS = """ {% endif %} {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif record.is_connectable and perms.dcim.add_cable %} @@ -178,7 +178,7 @@ INTERFACE_BUTTONS = """ FRONTPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} @@ -199,7 +199,7 @@ FRONTPORT_BUTTONS = """ REARPORT_BUTTONS = """ {% if record.cable %} - + {% include 'dcim/inc/cable_toggle_buttons.html' with cable=record.cable %} {% elif perms.dcim.add_cable %} diff --git a/netbox/extras/templatetags/custom_links.py b/netbox/extras/templatetags/custom_links.py index 9fbec489d..4f4d27cf9 100644 --- a/netbox/extras/templatetags/custom_links.py +++ b/netbox/extras/templatetags/custom_links.py @@ -61,7 +61,7 @@ def custom_links(context, obj): ) except Exception as e: template_code += '' \ - ' {}\n'.format(e, cl.name) + ' {}\n'.format(e, cl.name) # Add grouped links to template for group, links in group_names.items(): @@ -80,7 +80,7 @@ def custom_links(context, obj): except Exception as e: links_rendered.append( '
  • ' - ' {}
  • '.format(e, cl.name) + ' {}
    '.format(e, cl.name) ) if links_rendered: diff --git a/netbox/extras/tests/dummy_plugin/navigation.py b/netbox/extras/tests/dummy_plugin/navigation.py index feeb38b69..88ac3f7c9 100644 --- a/netbox/extras/tests/dummy_plugin/navigation.py +++ b/netbox/extras/tests/dummy_plugin/navigation.py @@ -9,12 +9,12 @@ menu_items = ( PluginMenuButton( link='admin:dummy_plugin_dummymodel_add', title='Add a new dummy model', - icon_class='fa fa-plus', + icon_class='mdi mdi-plus-thick', ), PluginMenuButton( link='admin:dummy_plugin_dummymodel_add', title='Add a new dummy model', - icon_class='fa fa-plus', + icon_class='mdi mdi-plus-thick', ), ) ), diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index fc5e917fd..02196198c 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -19,7 +19,7 @@ UTILIZATION_GRAPH = """ PREFIX_LINK = """ {% if record.children %} - + {% else %} {% endif %} @@ -105,9 +105,9 @@ VLANGROUP_ADD_VLAN = """ VLAN_MEMBER_TAGGED = """ {% if record.untagged_vlan_id == vlan.pk %} - + {% else %} - + {% endif %} """ diff --git a/netbox/tenancy/tables.py b/netbox/tenancy/tables.py index 8f9073025..8abca2bb8 100644 --- a/netbox/tenancy/tables.py +++ b/netbox/tenancy/tables.py @@ -5,7 +5,7 @@ from .models import Tenant, TenantGroup MPTT_LINK = """ {% if record.get_children %} - + {% else %} {% endif %}