Updated content header
authorThierry Florac <thierry.florac@onf.fr>
Fri, 16 Mar 2018 08:15:58 +0100
changeset 17 5a8888d973b4
parent 16 d2950d484bdf
child 18 1a8ae80d426c
Updated content header
src/pyams_default_theme/shared/common.py
src/pyams_default_theme/shared/templates/content-header.pt
src/pyams_default_theme/shared/templates/content-preview.pt
--- 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
 
--- /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 @@
+<h1 tal:content="view.title" />
--- 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 @@
-<h1 tal:content="view.title" />