mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Avoid wrapping text in hierarchical table columns
This commit is contained in:
@ -26,7 +26,8 @@ class RackGroupTable(BaseTable):
|
|||||||
pk = ToggleColumn()
|
pk = ToggleColumn()
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code=MPTT_LINK,
|
template_code=MPTT_LINK,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
site = tables.LinkColumn(
|
site = tables.LinkColumn(
|
||||||
viewname='dcim:site',
|
viewname='dcim:site',
|
||||||
|
@ -19,7 +19,8 @@ class RegionTable(BaseTable):
|
|||||||
pk = ToggleColumn()
|
pk = ToggleColumn()
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code=MPTT_LINK,
|
template_code=MPTT_LINK,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
site_count = tables.Column(
|
site_count = tables.Column(
|
||||||
verbose_name='Sites'
|
verbose_name='Sites'
|
||||||
|
@ -270,7 +270,7 @@ class PrefixTable(BaseTable):
|
|||||||
pk = ToggleColumn()
|
pk = ToggleColumn()
|
||||||
prefix = tables.TemplateColumn(
|
prefix = tables.TemplateColumn(
|
||||||
template_code=PREFIX_LINK,
|
template_code=PREFIX_LINK,
|
||||||
attrs={'th': {'style': 'padding-left: 17px'}}
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
status = ChoiceFieldColumn(
|
status = ChoiceFieldColumn(
|
||||||
default=AVAILABLE_LABEL
|
default=AVAILABLE_LABEL
|
||||||
|
@ -27,7 +27,8 @@ class TenantGroupTable(BaseTable):
|
|||||||
pk = ToggleColumn()
|
pk = ToggleColumn()
|
||||||
name = tables.TemplateColumn(
|
name = tables.TemplateColumn(
|
||||||
template_code=MPTT_LINK,
|
template_code=MPTT_LINK,
|
||||||
orderable=False
|
orderable=False,
|
||||||
|
attrs={'td': {'class': 'text-nowrap'}}
|
||||||
)
|
)
|
||||||
tenant_count = LinkedCountColumn(
|
tenant_count = LinkedCountColumn(
|
||||||
viewname='tenancy:tenant_list',
|
viewname='tenancy:tenant_list',
|
||||||
|
Reference in New Issue
Block a user