Updated preview template
authorThierry Florac <thierry.florac@onf.fr>
Tue, 10 Jul 2018 12:03:21 +0200
changeset 818 50b86c4545cc
parent 817 8b7ef935dcda
child 819 24d8f9106444
Updated preview template
src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt
--- a/src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt	Tue Jul 10 11:50:27 2018 +0200
+++ b/src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt	Tue Jul 10 12:03:21 2018 +0200
@@ -14,7 +14,10 @@
 			<span tal:define="unit i18n:number.unit"
 				  tal:condition="unit"
 				  tal:content="unit">Unit</span>
-			<span tal:content="i18n:number.text">text</span>
+			<tal:var define="txt i18n:number.text">
+				<tal:if condition="txt"> / </tal:if>
+				<span tal:content="i18n:number.text">text</span>
+			</tal:var>
 		</li>
 	</ul>
 	<div tal:define="visible_links list(settings.links.get_visible_items())"