Merge "Show Created At column for backups table" into stable/2024.1

This commit is contained in:
Zuul 2024-11-19 14:20:39 +00:00 committed by Gerrit Code Review
commit e038c7a46f
2 changed files with 4 additions and 1 deletions

View File

@ -117,6 +117,7 @@ class AdminBackupsTable(project_tables.BackupsTable):
snapshot = AdminSnapshotColumn("snapshot",
verbose_name=_("Snapshot"),
link="horizon:admin:snapshots:detail")
created_at = tables.Column("created_at", verbose_name=_("Created At"))
class Meta(object):
name = "volume_backups"
@ -128,4 +129,5 @@ class AdminBackupsTable(project_tables.BackupsTable):
row_actions = (AdminRestoreBackup, ForceDeleteBackup,
AdminDeleteBackup, UpdateVolumeBackupStatusAction,)
columns = ('project', 'name', 'description', 'size', 'status',
'availability_zone', 'volume_name', 'snapshot',)
'availability_zone', 'volume_name', 'snapshot',
'created_at')

View File

@ -189,6 +189,7 @@ class BackupsTable(tables.DataTable):
snapshot = SnapshotColumn("snapshot",
verbose_name=_("Snapshot"),
link="horizon:project:snapshots:detail")
created_at = tables.Column("created_at", verbose_name=_("Created At"))
def current_page(self):
return self._meta.current_page()