Use "structure:" in navigation portlets preview templates
authorThierry Florac <thierry.florac@onf.fr>
Tue, 26 Mar 2019 11:44:28 +0100
changeset 1298 51fb637ace75
parent 1297 393e4f1812e1
child 1299 1a307e6b9432
Use "structure:" in navigation portlets preview templates
src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt
src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt
--- a/src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt	Fri Mar 22 17:47:03 2019 +0100
+++ b/src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt	Tue Mar 26 11:44:28 2019 +0100
@@ -1,8 +1,8 @@
 <div tal:define="settings view.settings" i18n:domain="pyams_content">
-	<strong tal:content="i18n:settings.title">Title</strong>
+	<strong>${i18n:settings.title}</strong>
 	<ul>
 		<li tal:repeat="menu settings.menus.get_visible_items(request)">
-			<span tal:content="i18n:menu.title">Title</span>
+			<span>${i18n:menu.title}</span>
 			<ul>
 				<li tal:repeat="link menu.get_visible_items(request)">
 					<i class="fa fa-fw fa-eye-slash text-danger hint opaque align-base"
@@ -13,7 +13,7 @@
 					   tal:condition="not:illustration and illustration.has_data()"
 					   title="Link has no illustration" i18n:attributes="title"></i>
 					<tal:var define="info view.get_link_info(link)">
-						<span tal:content="info.inner_title">Inner title</span>
+						<span>${structure:info.inner_title}</span>
 					</tal:var>
 				</li>
 			</ul>
--- a/src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt	Fri Mar 22 17:47:03 2019 +0100
+++ b/src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt	Tue Mar 26 11:44:28 2019 +0100
@@ -1,5 +1,5 @@
 <div tal:define="settings view.settings" i18n:domain="pyams_content">
-	<strong tal:content="i18n:settings.title">Title</strong>
+	<strong>${i18n:settings.title}</strong>
 	<ul>
 		<li tal:repeat="link settings.links.get_visible_items(request)">
 			<i class="fa fa-fw fa-eye-slash text-danger hint opaque align-base"
@@ -10,7 +10,7 @@
 			   tal:condition="not:illustration and illustration.has_data()"
 			   title="Link has no illustration" i18n:attributes="title"></i>
 			<tal:var define="info view.get_link_info(link)">
-				<span tal:content="info.inner_title">Inner title</span>
+				<span>${structure:info.inner_title}</span>
 			</tal:var>
 		</li>
 	</ul>