]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/combo/gallery.html
add "support" for portrait galleries
[panikweb.git] / panikweb_templates / templates / combo / gallery.html
index c1c179b181274704b44014854686a958d4eb4768..6ff1466b25d02888cff6592be40d154908cfe0e8 100644 (file)
@@ -9,10 +9,18 @@
 <div>
   {% endif %}
 {% thumbnail image.image "200x100" crop="50% 25%" as im %}
+{% if cell.slug == 'portrait' %}
+{% thumbnail image.image "480x640" crop="50% 25%" as im_large %}
+<span data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
+        {% if image.title %} title="{{image.title}}" {% endif %}/></span>
+{% endthumbnail %}
+{% else %}
 {% thumbnail image.image "640x480" crop="50% 25%" as im_large %}
 <span data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
         {% if image.title %} title="{{image.title}}" {% endif %}/></span>
 {% endthumbnail %}
+
+{% endif %}
 {% endthumbnail %}
 {% endfor %}
 </div>