Création macro « thumbnails » qui ne comprend que les slides.
authorBenoît Pin <pin@cri.ensmp.fr>
Wed, 9 Jul 2014 14:37:57 +0000 (16:37 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Wed, 9 Jul 2014 14:37:57 +0000 (16:37 +0200)
skins/photo_layout_macros.pt

index 1ab636a..1a77be0 100644 (file)
@@ -13,7 +13,7 @@
          i18n:domain="portfolio">
       <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
       <div id="lightbox" tal:attributes="class python:'lightbox photo-drop-target' if dropable else 'lightbox'">
          i18n:domain="portfolio">
       <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
       <div id="lightbox" tal:attributes="class python:'lightbox photo-drop-target' if dropable else 'lightbox'">
-        <span tal:repeat="info infos" tal:omit-tag="">
+        <span metal:define-macro="thumbnails" tal:repeat="info infos" tal:omit-tag="">
           <span tal:define="size info/thumbSize;
                             margin_top python:(slide_size - size['height']) / 2;
                             margin_left python:(slide_size - size['width']) / 2;
           <span tal:define="size info/thumbSize;
                             margin_top python:(slide_size - size['height']) / 2;
                             margin_left python:(slide_size - size['width']) / 2;