Updated preview template
authorThierry Florac <thierry.florac@onf.fr>
Tue, 10 Jul 2018 12:39:43 +0200
changeset 819 24d8f9106444
parent 818 50b86c4545cc
child 820 ef6e71a98a5a
Updated preview template
src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt
--- a/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Tue Jul 10 12:03:21 2018 +0200
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Tue Jul 10 12:39:43 2018 +0200
@@ -1,9 +1,15 @@
 <div class="padding-x-5"
 	 tal:define="settings view.settings; global count 0;" i18n:domain="pyams_content">
-	<div tal:repeat="item settings.get_items(request, ignore_cache=True)">
-		<tal:var content="i18n:item.title" />
-		<tal:var define="global count count+1" />
-	</div>
+	<strong tal:define="title i18n:settings.title"
+			tal:condition="title">
+		<tal:var content="title" /><br />
+	</strong>
+	<ul>
+		<li tal:repeat="item settings.get_items(request, ignore_cache=True)">
+			<tal:var content="i18n:item.title" />
+			<tal:var define="global count count+1" />
+		</li>
+	</ul>
 	<tal:if condition="not:count">
 		<tal:if condition="settings.views" i18n:translate="">No result found</tal:if>
 		<tal:if condition="not:settings.views" i18n:translate="">No selected view</tal:if>