diff --git a/core/src/zeit/cms/repository/browser/property.py b/core/src/zeit/cms/repository/browser/property.py index f13c1ed946..1ddf726efc 100644 --- a/core/src/zeit/cms/repository/browser/property.py +++ b/core/src/zeit/cms/repository/browser/property.py @@ -1,3 +1,5 @@ +import html + import zc.table.column import zc.table.interfaces import zope.interface @@ -11,6 +13,23 @@ class GetterColumn(zc.table.column.GetterColumn): pass +class ActionsColumn(zc.table.column.Column): + def renderCell(self, item, formatter): + selector = f'copy_{item[0][0]}' + copy_translation = _('Copy') + return ( + f'
' + f'' + ) + + class MetadataColumn(GetterColumn): def __init__(self): super().__init__(title='') @@ -30,6 +49,7 @@ class Listing(zeit.cms.browser.listing.Listing): GetterColumn(title=_('Namespace'), getter=lambda t, c: t[0][1]), GetterColumn(title=_('Name'), getter=lambda t, c: t[0][0]), GetterColumn(title=_('Value'), getter=lambda t, c: str(t[1])), + ActionsColumn(title=_('Actions')), MetadataColumn(), )