# HG changeset patch # User Thierry Florac # Date 1544795071 -3600 # Node ID 7724c2dd7a8268f735a88bcf21c95d19f226097a # Parent 41310cefa42a412bb9b7ceda0f3eee82b8e60a03 Updated preview action to open preview in a new window diff -r 41310cefa42a -r 7724c2dd7a82 src/pyams_content/features/preview/zmi/__init__.py --- a/src/pyams_content/features/preview/zmi/__init__.py Fri Dec 14 13:32:54 2018 +0100 +++ b/src/pyams_content/features/preview/zmi/__init__.py Fri Dec 14 14:44:31 2018 +0100 @@ -39,6 +39,7 @@ @viewlet_config(name='preview.action', context=IPreviewTarget, layer=IAdminLayer, view=Interface, manager=IToolbarViewletManager, permisison=VIEW_SYSTEM_PERMISSION, weight=50) +@template_config(template='templates/preview-action.pt', layer=IAdminLayer) class PreviewAction(ToolbarAction): """Content preview action""" diff -r 41310cefa42a -r 7724c2dd7a82 src/pyams_content/features/preview/zmi/templates/preview-action.pt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_content/features/preview/zmi/templates/preview-action.pt Fri Dec 14 14:44:31 2018 +0100 @@ -0,0 +1,17 @@ +
+
+   + +
+
+   +
+