# HG changeset patch # User Thierry Florac # Date 1521184558 -3600 # Node ID 5a8888d973b4f7497c2d6a0588ae1b96c58858ab # Parent d2950d484bdffab7961e7ebe5a8fe3ea1633a4a2 Updated content header diff -r d2950d484bdf -r 5a8888d973b4 src/pyams_default_theme/shared/common.py --- a/src/pyams_default_theme/shared/common.py Thu Mar 15 09:32:24 2018 +0100 +++ b/src/pyams_default_theme/shared/common.py Fri Mar 16 08:15:58 2018 +0100 @@ -26,11 +26,11 @@ from pyams_utils.adapter import adapter_config -@adapter_config(name='properties-preview', context=(IWfSharedContent, IPyAMSDefaultLayer), +@adapter_config(name='header-render', context=(IWfSharedContent, IPyAMSDefaultLayer), provides=IContentRenderer) -@template_config(template='templates/content-preview.pt', layer=IPyAMSDefaultLayer) -class SharedContentRenderer(BaseContentRenderer): - """Shared content renderer""" +@template_config(template='templates/content-header.pt', layer=IPyAMSDefaultLayer) +class SharedContentHeaderRenderer(BaseContentRenderer): + """Shared content header renderer""" weight = 1 diff -r d2950d484bdf -r 5a8888d973b4 src/pyams_default_theme/shared/templates/content-header.pt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pyams_default_theme/shared/templates/content-header.pt Fri Mar 16 08:15:58 2018 +0100 @@ -0,0 +1,1 @@ +

diff -r d2950d484bdf -r 5a8888d973b4 src/pyams_default_theme/shared/templates/content-preview.pt --- a/src/pyams_default_theme/shared/templates/content-preview.pt Thu Mar 15 09:32:24 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -