Version 0.1.21 0.1.21
authorThierry Florac <thierry.florac@onf.fr>
Tue, 09 Oct 2018 16:34:15 +0200
changeset 1009 9b87a68986bf
parent 1008 b03229e715e2
child 1010 2b40c8ad9cca
Version 0.1.21
src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt
--- a/src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt	Tue Oct 09 16:23:32 2018 +0200
+++ b/src/pyams_content/component/illustration/zmi/templates/illustration-thumbnail.pt	Tue Oct 09 16:34:15 2018 +0200
@@ -1,4 +1,8 @@
-<tal:var i18n:domain="pyams_content">
-	<img tal:define="illustration i18n:view.illustration.data"
-		 tal:attributes="src tales:absolute_url(illustration, '++thumb++128x24.png')" />
+<tal:var i18n:domain="pyams_content"
+		 tal:define="illustration i18n:view.illustration.data"
+		 tal:condition="illustration">
+	<img tal:define="thumbnails tales:thumbnails(illustration);
+					 thumbnail thumbnails.get_thumbnail('128x24');
+					 src tales:absolute_url(thumbnail);"
+		 src="${src}?_=${tales:timestamp(illustration)}" />
 </tal:var>