Updated portlet preview template
authorThierry Florac <thierry.florac@onf.fr>
Thu, 14 Jun 2018 09:12:44 +0200
changeset 676 9dc1d14806bc
parent 675 d0f98180ef0d
child 677 d4d704d82df7
Updated portlet preview template
src/pyams_content/portlet/content/interfaces/__init__.py
src/pyams_content/portlet/content/zmi/preview.pt
--- a/src/pyams_content/portlet/content/interfaces/__init__.py	Thu Jun 14 09:12:09 2018 +0200
+++ b/src/pyams_content/portlet/content/interfaces/__init__.py	Thu Jun 14 09:12:44 2018 +0200
@@ -16,9 +16,9 @@
 # import standard library
 
 # import interfaces
+from pyams_portal.interfaces import IPortletSettings
 
 # import packages
-from pyams_portal.interfaces import IPortletSettings
 
 
 class ISharedContentPortletSettings(IPortletSettings):
--- a/src/pyams_content/portlet/content/zmi/preview.pt	Thu Jun 14 09:12:09 2018 +0200
+++ b/src/pyams_content/portlet/content/zmi/preview.pt	Thu Jun 14 09:12:44 2018 +0200
@@ -1,13 +1,3 @@
 <tal:var define="settings view.settings" i18n:domain="pyams_content">
-	<tal:if condition="settings.visible">
-		<span class="padding-5" i18n:translate="">This is where the content will be displayed!!</span>
-	</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>
+	<span class="padding-5" i18n:translate="">This is where the content will be displayed!!</span>
 </tal:var>