Updated renderers template
authorThierry Florac <tflorac@ulthar.net>
Mon, 22 Jun 2020 18:30:36 +0200
changeset 505 f3f3e9792c10
parent 504 f0f6b7c25835
child 506 0417bf1a6fa4
Updated renderers template
src/pyams_default_theme/component/paragraph/templates/raw-default.pt
src/pyams_default_theme/component/paragraph/templates/raw-markdown.pt
src/pyams_default_theme/component/paragraph/templates/raw-rest.pt
src/pyams_default_theme/component/paragraph/templates/raw-source-code.pt
--- a/src/pyams_default_theme/component/paragraph/templates/raw-default.pt	Wed Oct 23 14:51:35 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/raw-default.pt	Mon Jun 22 18:30:36 2020 +0200
@@ -1,2 +1,3 @@
-<h3>${view.title}</h3>
+<h3 tal:define="title view.title"
+	tal:condition="title">${title}</h3>
 <div>${structure:view.body}</div>
\ No newline at end of file
--- a/src/pyams_default_theme/component/paragraph/templates/raw-markdown.pt	Wed Oct 23 14:51:35 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/raw-markdown.pt	Mon Jun 22 18:30:36 2020 +0200
@@ -1,4 +1,3 @@
-<h3>${view.title}</h3>
-<tal:var define="settings view.settings">
-	${structure:view.source}
-</tal:var>
+<h3 tal:define="title view.title"
+	tal:condition="title">${title}</h3>
+<div>${structure:view.source}</div>
\ No newline at end of file
--- a/src/pyams_default_theme/component/paragraph/templates/raw-rest.pt	Wed Oct 23 14:51:35 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/raw-rest.pt	Mon Jun 22 18:30:36 2020 +0200
@@ -1,4 +1,3 @@
-<h3>${view.title}</h3>
-<tal:var define="settings view.settings">
-	${structure:view.source}
-</tal:var>
+<h3 tal:define="title view.title"
+	tal:condition="title">${title}</h3>
+<div>${structure:view.source}</div>
\ No newline at end of file
--- a/src/pyams_default_theme/component/paragraph/templates/raw-source-code.pt	Wed Oct 23 14:51:35 2019 +0200
+++ b/src/pyams_default_theme/component/paragraph/templates/raw-source-code.pt	Mon Jun 22 18:30:36 2020 +0200
@@ -1,4 +1,5 @@
-<h3>${view.title}</h3>
+<h3 tal:define="title view.title"
+	tal:condition="title">${title}</h3>
 <tal:var define="settings view.settings">
 	<div class="source"
 		 tal:omit-tag="not settings.disable_wrap">
@@ -6,4 +7,4 @@
 			${structure:view.source}
 		</pre>
 	</div>
-</tal:var>
+</tal:var>
\ No newline at end of file