eggification
[MosaicDocument.git] / Products / MosaicDocument / default_slots / slot_image_view.pt
diff --git a/Products/MosaicDocument/default_slots/slot_image_view.pt b/Products/MosaicDocument/default_slots/slot_image_view.pt
new file mode 100755 (executable)
index 0000000..92ef414
--- /dev/null
@@ -0,0 +1,28 @@
+<html tal:omit-tag="">
+<head tal:replace="nothing">
+    <title>slot_image_render</title>
+    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
+  </head>
+<body tal:define="object nocall:options/object;
+                  thumbnail object/thumbnail;
+                  src thumbnail/absolute_url;
+                  width thumbnail/width;
+                  height thumbnail/height;
+                  title object/title|nothing;"
+      i18n:domain="plinn"
+      tal:omit-tag="">
+  <div class="image">
+    <a title="Click to see image full-size" target="image_view" i18n:attributes="title"
+       tal:attributes="href string:${object/absolute_url}/getJpegImage;
+       onClick string:window.open('${object/absolute_url}/getJpegImage', 'image_view', 'toolbar=no,scrollbars=yes,,resizable=1,width=${object/width},height=${object/height}')">
+      <img border="0"
+        tal:attributes="
+          width width;
+          height height;
+          src src;
+          alt python:title or ''" />
+    </a>
+      <div tal:condition="title" tal:content="title" class="caption">title</div>
+    </div>
+</body>
+</html>
\ No newline at end of file