--- a/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt Mon Jul 09 17:15:35 2018 +0200
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt Tue Jul 10 11:50:27 2018 +0200
@@ -1,9 +1,11 @@
-<tal:var define="settings view.settings; global count 0;" i18n:domain="pyams_content">
+<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>
- <tal:if condition="not:count" i18n:translate="">
- No result found
+ <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>
-</tal:var>
+</div>