Updated preview template
authorThierry Florac <tflorac@ulthar.net>
Wed, 03 Oct 2018 10:50:32 +0200
changeset 991 5c71db179d35
parent 990 3b3a47dbe205
child 992 8fd039f79d30
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 Oct 02 09:55:36 2018 +0200
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Wed Oct 03 10:50:32 2018 +0200
@@ -4,14 +4,22 @@
 			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>
-	</tal:if>
+	<div>
+		<span i18n:translate="">Selected views:</span>
+		<tal:if condition="not:settings.views" i18n:translate="">none</tal:if>
+		<tal:loop repeat="view settings.get_views()">
+			${i18n:view.title}<tal:if condition="not:repeat.view.end()">,</tal:if>
+		</tal:loop>
+	</div>
+	<div>
+		<span i18n:translate="">Extracted contents:</span>
+		<tal:if condition="not:settings.views" i18n:translate="">none (no selected view)</tal:if>
+		<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>
+			<span tal:condition="not:count" i18n:translate="">No result found</span>
+		</ul>
+	</div>
 </div>