diff options
author | Zuul <zuul@review.opendev.org> | 2021-07-29 14:52:49 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-07-29 14:52:49 +0000 |
commit | 153f50ca053b96753f2189d432f9e8a2cc12ed93 (patch) | |
tree | 2f5d662554318454ae3eb0143f4ef95951c92960 /openstack_dashboard/dashboards | |
parent | 49b79a6f30c7c1af6023e89a10d344682319b4a3 (diff) | |
parent | b6439399e0a66a96614b9b536af1c1a58f1f5bb9 (diff) | |
download | horizon-153f50ca053b96753f2189d432f9e8a2cc12ed93.tar.gz |
Merge "Make word wrapping consistent"
Diffstat (limited to 'openstack_dashboard/dashboards')
5 files changed, 11 insertions, 11 deletions
diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py index d9be29697..adbd2a151 100644 --- a/openstack_dashboard/dashboards/admin/info/tables.py +++ b/openstack_dashboard/dashboards/admin/info/tables.py @@ -103,7 +103,7 @@ def get_agent_status(agent): class NovaServicesTable(tables.DataTable): binary = tables.Column("binary", verbose_name=_('Name')) - host = tables.Column('host', verbose_name=_('Host')) + host = tables.WrappingColumn('host', verbose_name=_('Host')) zone = tables.Column('zone', verbose_name=_('Zone')) status = tables.Column(get_agent_status, verbose_name=_('Status')) state = tables.Column('state', verbose_name=_('State'), @@ -127,7 +127,7 @@ class NovaServicesTable(tables.DataTable): class CinderServicesTable(tables.DataTable): binary = tables.Column("binary", verbose_name=_('Name')) - host = tables.Column('host', verbose_name=_('Host')) + host = tables.WrappingColumn('host', verbose_name=_('Host')) zone = tables.Column('zone', verbose_name=_('Zone')) status = tables.Column(get_agent_status, verbose_name=_('Status')) state = tables.Column('state', verbose_name=_('State'), @@ -202,7 +202,7 @@ class NetworkL3AgentRoutersLinkAction(tables.LinkAction): class NetworkAgentsTable(tables.DataTable): agent_type = tables.Column('agent_type', verbose_name=_('Type')) binary = tables.Column("binary", verbose_name=_('Name')) - host = tables.Column('host', verbose_name=_('Host')) + host = tables.WrappingColumn('host', verbose_name=_('Host')) zone = tables.Column(get_network_agent_zone, verbose_name=_('Zone')) status = tables.Column(get_network_agent_status, verbose_name=_('Status')) state = tables.Column(get_network_agent_state, verbose_name=_('State')) diff --git a/openstack_dashboard/dashboards/admin/instances/tables.py b/openstack_dashboard/dashboards/admin/instances/tables.py index 4cdc13121..33376b4fd 100644 --- a/openstack_dashboard/dashboards/admin/instances/tables.py +++ b/openstack_dashboard/dashboards/admin/instances/tables.py @@ -147,14 +147,13 @@ class AdminInstancesTable(tables.DataTable): # techniques isn't practical. It can be added back in when we have names # returned in a practical manner by the API. # user = tables.Column("user_id", verbose_name=_("User")) - host = tables.Column("OS-EXT-SRV-ATTR:host", - verbose_name=_("Host"), - classes=('nowrap-col',)) + host = tables.WrappingColumn("OS-EXT-SRV-ATTR:host", + verbose_name=_("Host")) name = tables.WrappingColumn("name", link=get_server_detail_link, verbose_name=_("Name")) - image_name = tables.Column("image_name", - verbose_name=_("Image Name")) + image_name = tables.WrappingColumn("image_name", + verbose_name=_("Image Name")) ip = tables.Column(project_tables.get_ips, verbose_name=_("IP Address"), attrs={'data-type': "ip"}) diff --git a/openstack_dashboard/dashboards/admin/networks/agents/tables.py b/openstack_dashboard/dashboards/admin/networks/agents/tables.py index da8c7beb6..724f00aae 100644 --- a/openstack_dashboard/dashboards/admin/networks/agents/tables.py +++ b/openstack_dashboard/dashboards/admin/networks/agents/tables.py @@ -83,7 +83,7 @@ class DHCPAgentsFilterAction(tables.FilterAction): class DHCPAgentsTable(tables.DataTable): id = tables.Column('id', verbose_name=_('ID'), hidden=True) - host = tables.Column('host', verbose_name=_('Host')) + host = tables.WrappingColumn('host', verbose_name=_('Host')) status = tables.Column(get_agent_status, verbose_name=_('Status')) state = tables.Column(get_agent_state, verbose_name=_('Admin State')) heartbeat_timestamp = tables.Column('heartbeat_timestamp', diff --git a/openstack_dashboard/dashboards/admin/snapshots/tables.py b/openstack_dashboard/dashboards/admin/snapshots/tables.py index ffffa03bf..458604396 100644 --- a/openstack_dashboard/dashboards/admin/snapshots/tables.py +++ b/openstack_dashboard/dashboards/admin/snapshots/tables.py @@ -59,7 +59,7 @@ class VolumeSnapshotsTable(volumes_tables.VolumesTableBase): volume_name = snapshots_tables.SnapshotVolumeNameColumn( "name", verbose_name=_("Volume Name"), link="horizon:admin:volumes:detail") - host = tables.Column("host_name", verbose_name=_("Host")) + host = tables.WrappingColumn("host_name", verbose_name=_("Host")) tenant = tables.Column("tenant_name", verbose_name=_("Project")) group_snapshot = snapshots_tables.GroupSnapshotNameColumn( "name", diff --git a/openstack_dashboard/dashboards/admin/volumes/tables.py b/openstack_dashboard/dashboards/admin/volumes/tables.py index 5f8804c0f..cedfe3a42 100644 --- a/openstack_dashboard/dashboards/admin/volumes/tables.py +++ b/openstack_dashboard/dashboards/admin/volumes/tables.py @@ -102,7 +102,8 @@ class VolumesTable(volumes_tables.VolumesTable): link="horizon:admin:volumes:detail") attachments = AttachmentColumn("attachments", verbose_name=_("Attached To")) - host = tables.Column("os-vol-host-attr:host", verbose_name=_("Host")) + host = tables.WrappingColumn("os-vol-host-attr:host", + verbose_name=_("Host")) tenant = tables.Column(lambda obj: getattr(obj, 'tenant_name', None), verbose_name=_("Project")) group = volumes_tables.GroupNameColumn( |