--- a/src/pyams_default_theme/shared/site/portlet/templates/site-summary.pt Thu Nov 15 17:55:49 2018 +0100
+++ b/src/pyams_default_theme/shared/site/portlet/templates/site-summary.pt Fri Nov 16 08:24:17 2018 +0100
@@ -1,28 +1,26 @@
-<div tal:define="settings view.settings;
- button_title i18n:settings.button_title;">
- <div class="row summary">
+<div i18n:domain="pyams_default_theme">
+ <div class="summary">
<div tal:repeat="item view.visible_items">
<div class="thumbnail pull-left">
- <tal:var define="illustration tales:pyams_illustration(item.context)"
- condition="illustration">
- <tal:var define="image i18n:illustration.data;
- alt i18n:illustration.alt_title;"
- condition="image">
+ <tal:if define="illustration tales:pyams_illustration(item.context)"
+ condition="illustration">
+ <tal:if define="image i18n:illustration.data;
+ alt i18n:illustration.alt_title;"
+ condition="image">
${structure:tales:picture(image, lg_thumb='pano', lg_width=3, md_thumb='pano', md_width=3, sm_thumb='pano',
sm_width=4, xs_thumb='pano', xs_width=12, alt=alt, css_class='result_media')}
- </tal:var>
- </tal:var>
+ </tal:if>
+ </tal:if>
</div>
<div>
<h2>${item.title}</h2>
<div class="header">${item.header}</div>
<div class="action">
<a href="${tales:relative_url(item.context)}">
- <span i18n:translate="">${button_title or item.button_title}</span>
+ <span i18n:translate="">${item.button_title}</span>
</a>
</div>
</div>
<div class="clearfix"></div>
- </div>
</div>
</div>