Added "glossary" HTML renderer to verbatim paragraph templates
authorThierry Florac <tflorac@ulthar.net>
Sat, 12 Jan 2019 18:35:55 +0100
changeset 369 bb30d6a57ffb
parent 368 3ad8173bd02f
child 370 9a5f4a56e3ac
Added "glossary" HTML renderer to verbatim paragraph templates
src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt
src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Fri Jan 11 13:55:26 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-default.pt	Sat Jan 12 18:35:55 2019 +0100
@@ -29,8 +29,7 @@
 			</tal:if>
 			<div class="col-md-10 col-sm-9 col-xs-12"
 				 tal:omit-tag="not:display_illustration">
-				<div class="quote"
-					 tal:content="structure tales:html(view.quote)">Quote</div>
+				<div class="quote">${structure:tales:html(view.quote, 'text;glossary')}</div>
 				<div class="author">
 					<strong>${view.author}</strong><tal:if
 						condition="view.author and view.charge">, </tal:if>
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Fri Jan 11 13:55:26 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-left.pt	Sat Jan 12 18:35:55 2019 +0100
@@ -29,7 +29,7 @@
 			</tal:if>
 			<div class="col-md-9 col-sm-12"
 				 tal:omit-tag="not:display_illustration">
-				<div class="quote">${structure:tales:html(view.quote)}</div>
+				<div class="quote">${structure:tales:html(view.quote, 'text;glossary')}</div>
 				<div class="author">
 					<strong>${view.author}</strong><tal:if
 						condition="view.author and view.charge">, </tal:if>
--- a/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Fri Jan 11 13:55:26 2019 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/verbatim-right.pt	Sat Jan 12 18:35:55 2019 +0100
@@ -29,7 +29,7 @@
 			</tal:if>
 			<div class="col-md-9 col-sm-12"
 				 tal:omit-tag="not:display_illustration">
-				<div class="quote">${structure:tales:html(view.quote)}</div>
+				<div class="quote">${structure:tales:html(view.quote, 'text;glossary')}</div>
 				<div class="author">
 					<strong>${view.author}</strong><tal:if
 						condition="view.author and view.charge">, </tal:if>