mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Don't wrap component names
This commit is contained in:
parent
424d72a7b3
commit
052346364a
@ -253,7 +253,8 @@ class ConsolePortTable(DeviceComponentTable, PathEndpointTable):
|
|||||||
|
|
||||||
class DeviceConsolePortTable(ConsolePortTable):
|
class DeviceConsolePortTable(ConsolePortTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-console"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
template_code='<i class="mdi mdi-console"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=ConsolePort,
|
model=ConsolePort,
|
||||||
@ -286,7 +287,9 @@ class ConsoleServerPortTable(DeviceComponentTable, PathEndpointTable):
|
|||||||
|
|
||||||
class DeviceConsoleServerPortTable(ConsoleServerPortTable):
|
class DeviceConsoleServerPortTable(ConsoleServerPortTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-console-network-outline"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
template_code='<i class="mdi mdi-console-network-outline"></i> '
|
||||||
|
'<a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=ConsoleServerPort,
|
model=ConsoleServerPort,
|
||||||
@ -322,7 +325,9 @@ class PowerPortTable(DeviceComponentTable, PathEndpointTable):
|
|||||||
|
|
||||||
class DevicePowerPortTable(PowerPortTable):
|
class DevicePowerPortTable(PowerPortTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-power-plug-outline"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
template_code='<i class="mdi mdi-power-plug-outline"></i> <a href="{{ record.get_absolute_url }}">'
|
||||||
|
'{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=PowerPort,
|
model=PowerPort,
|
||||||
@ -365,7 +370,8 @@ class PowerOutletTable(DeviceComponentTable, PathEndpointTable):
|
|||||||
|
|
||||||
class DevicePowerOutletTable(PowerOutletTable):
|
class DevicePowerOutletTable(PowerOutletTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-power-socket"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
template_code='<i class="mdi mdi-power-socket"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=PowerOutlet,
|
model=PowerOutlet,
|
||||||
@ -421,7 +427,8 @@ class DeviceInterfaceTable(InterfaceTable):
|
|||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-{% if iface.mgmt_only %}wrench{% elif iface.is_lag %}drag-horizontal-variant'
|
template_code='<i class="mdi mdi-{% if iface.mgmt_only %}wrench{% elif iface.is_lag %}drag-horizontal-variant'
|
||||||
'{% elif iface.is_virtual %}circle{% elif iface.is_wireless %}wifi{% else %}ethernet'
|
'{% elif iface.is_virtual %}circle{% elif iface.is_wireless %}wifi{% else %}ethernet'
|
||||||
'{% endif %}"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
'{% endif %}"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
lag = tables.Column(
|
lag = tables.Column(
|
||||||
linkify=True,
|
linkify=True,
|
||||||
@ -472,7 +479,8 @@ class FrontPortTable(DeviceComponentTable, CableTerminationTable):
|
|||||||
class DeviceFrontPortTable(FrontPortTable):
|
class DeviceFrontPortTable(FrontPortTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-square-rounded{% if not record.cable %}-outline{% endif %}"></i> '
|
template_code='<i class="mdi mdi-square-rounded{% if not record.cable %}-outline{% endif %}"></i> '
|
||||||
'<a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
'<a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=FrontPort,
|
model=FrontPort,
|
||||||
@ -510,7 +518,8 @@ class RearPortTable(DeviceComponentTable, CableTerminationTable):
|
|||||||
class DeviceRearPortTable(RearPortTable):
|
class DeviceRearPortTable(RearPortTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="fmdi mdi-square-rounded{% if not record.cable %}-outline{% endif %}"></i> '
|
template_code='<i class="fmdi mdi-square-rounded{% if not record.cable %}-outline{% endif %}"></i> '
|
||||||
'<a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
'<a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=RearPort,
|
model=RearPort,
|
||||||
@ -552,7 +561,8 @@ class DeviceBayTable(DeviceComponentTable):
|
|||||||
class DeviceDeviceBayTable(DeviceBayTable):
|
class DeviceDeviceBayTable(DeviceBayTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<i class="mdi mdi-circle{% if record.installed_device %}slice-8{% else %}outline{% endif %}'
|
template_code='<i class="mdi mdi-circle{% if record.installed_device %}slice-8{% else %}outline{% endif %}'
|
||||||
'"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>'
|
'"></i> <a href="{{ record.get_absolute_url }}">{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=DeviceBay,
|
model=DeviceBay,
|
||||||
@ -593,7 +603,8 @@ class InventoryItemTable(DeviceComponentTable):
|
|||||||
class DeviceInventoryItemTable(InventoryItemTable):
|
class DeviceInventoryItemTable(InventoryItemTable):
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code='<a href="{{ record.get_absolute_url }}" style="padding-left: {{ record.level }}0px">'
|
template_code='<a href="{{ record.get_absolute_url }}" style="padding-left: {{ record.level }}0px">'
|
||||||
'{{ value }}</a>'
|
'{{ value }}</a>',
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
actions = ButtonsColumn(
|
actions = ButtonsColumn(
|
||||||
model=InventoryItem,
|
model=InventoryItem,
|
||||||
|
Loading…
Reference in New Issue
Block a user