From: Frédéric Péters Date: Mon, 4 Mar 2019 12:35:03 +0000 (+0100) Subject: don't misbalance
when gallery is empty X-Git-Tag: v2021~39 X-Git-Url: https://git.0d.be/?p=django-panik-combo.git;a=commitdiff_plain;h=084b35bba0e08fce8cd1774ca32dbfdd8f706c94;hp=a86e45fbe1d7a2b1b711dc4eab486962f4465f6a don't misbalance
when gallery is empty --- diff --git a/gallery/templates/combo/gallery.html b/gallery/templates/combo/gallery.html index 627ab10..6be3c9f 100644 --- a/gallery/templates/combo/gallery.html +++ b/gallery/templates/combo/gallery.html @@ -7,7 +7,7 @@ {% if image.title %}{{ image.title }}{% endif %}
-
+
{# extra opened
#} {% endthumbnail %} {% endif %} {% thumbnail image.image "60x60" crop="50% 25%" as im %} @@ -16,9 +16,12 @@ {% if image.title %} title="{{image.title}}" {% endif %}/> {% endthumbnail %} {% endthumbnail %} + + {% if forloop.last %} +
{# close extra
#} + {% endif %} {% endfor %}
-