Truncate image name in admin/images table
If you view /admin/images and /project/images, you will see that a long image name is truncated in /project/images but not /admin/images. This commit updates openstack_dashboard/dashboards/admin/images/tables.py to truncate the displayed image name to 40 characters, as is currently being done in openstack_dashboard/dashboards/project/images/images/tables.py. Change-Id: I68ac044ae57550284d833ad0433b091595819530
This commit is contained in:
parent
50051ff83b
commit
3c2f373a61
@ -88,6 +88,7 @@ class AdminImageFilterAction(tables.FilterAction):
|
||||
class AdminImagesTable(project_tables.ImagesTable):
|
||||
name = tables.Column("name",
|
||||
link="horizon:admin:images:detail",
|
||||
truncate=40,
|
||||
verbose_name=_("Image Name"))
|
||||
tenant = tables.Column(lambda obj: getattr(obj, 'tenant_name', obj.owner),
|
||||
verbose_name=_("Project"))
|
||||
|
Loading…
Reference in New Issue
Block a user