Updated portlet preview template
authorThierry Florac <thierry.florac@onf.fr>
Thu, 14 Jun 2018 09:12:09 +0200
changeset 675 d0f98180ef0d
parent 674 324e4f5a378b
child 676 9dc1d14806bc
Updated portlet 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	Thu Jun 14 09:11:51 2018 +0200
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Thu Jun 14 09:12:09 2018 +0200
@@ -1,22 +1,12 @@
 <tal:var define="settings view.settings">
-	<tal:if condition="settings.visible">
-		<tal:var define="items settings.get_items(context)">
-			<tal:if condition="items">
-				<div tal:repeat="item items">
-					<tal:var content="i18n:item.title" />
-				</div>
-			</tal:if>
-			<tal:if condition="not:items" i18n:translate="">
-				No result found
-			</tal:if>
-		</tal:var>
-	</tal:if>
-	<tal:if condition="not settings.visible">
-		<div class="text-center padding-y-5">
-			<span class="fa-stack fa-lg">
-				<i class="fa fa-eye fa-stack-1x"></i>
-				<i class="fa fa-ban fa-stack-2x text-danger"></i>
-			</span>
-		</div>
-	</tal:if>
+	<tal:var define="items settings.get_items(context)">
+		<tal:if condition="items">
+			<div tal:repeat="item items">
+				<tal:var content="i18n:item.title" />
+			</div>
+		</tal:if>
+		<tal:if condition="not:items" i18n:translate="">
+			No result found
+		</tal:if>
+	</tal:var>
 </tal:var>