src/pyams_content/component/illustration/zmi/templates/renderer-default.pt
changeset 418 81e4e9b9cde2
parent 417 f09842eb4ada
child 419 824fef808845
--- a/src/pyams_content/component/illustration/zmi/templates/renderer-default.pt	Fri Mar 02 11:24:02 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-<div class="text-center margin-y-5">
-	<picture tal:define="image_data i18n:context.data;
-						 image_url extension:absolute_url(image_data);
-						 base_width 100 / 12;
-						 width 12;">
-		<source media="(min-width: 1200px)"
-				tal:attributes="srcset string:${image_url}/++thumb++lg:w1200 1200w, ${image_url}/++thumb++lg:w512 512w, ${image_url}/++thumb++lg:w256 256w, ${image_url}/++thumb++lg:w128 128w;
-								sizes string:${round(base_width * width)}vw" />
-		<source media="(min-width: 992px)"
-				tal:attributes="srcset string:${image_url}/++thumb++md:w992 992w, ${image_url}/++thumb++md:w512 512w, ${image_url}/++thumb++md:w256 256w, ${image_url}/++thumb++md:w128 128w;
-								sizes string:${round(base_width * width)}vw" />
-		<source media="(min-width: 768px)"
-				tal:condition="width"
-				tal:attributes="srcset string:${image_url}/++thumb++sm:w768 768w, ${image_url}/++thumb++sm:w512 512w, ${image_url}/++thumb++sm:w256 256w, ${image_url}/++thumb++sm:w128 128w;
-								sizes string:${round(base_width * width)}vw" />
-		<source media="(max-width: 767px)"
-				tal:condition="width"
-				tal:attributes="srcset string:${image_url}/++thumb++xs:w768 768w, ${image_url}/++thumb++xs:w512 512w, ${image_url}/++thumb++xs:w256 256w, ${image_url}/++thumb++xs:w128 128w;
-								sizes string:${round(base_width * width)}vw" />
-		<img style="width: 100%;" tal:attributes="src image_url" />
-	</picture>
-	<span tal:content="view.legend">legend</span>
-</div>