diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_image_odt.html')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image_odt.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image_odt.html b/ishtar_common/templates/ishtar/blocks/window_image_odt.html index 9c9383cdd..548d0b46f 100644 --- a/ishtar_common/templates/ishtar/blocks/window_image_odt.html +++ b/ishtar_common/templates/ishtar/blocks/window_image_odt.html @@ -1,7 +1,13 @@ {% load i18n %} <div class="lightgallery-captions"> - {% for image in item.images.all %} - <div id="lightgallery-{{window_id}}-caption-{{forloop.counter0}}"> + {% if item.main_image %}{% with image=item.main_image %} + <div id="lightgallery-{{window_id}}-caption-0"> + <img src="{{BASE_URL}}{{image.thumbnail.url}}"> + {% include "ishtar/blocks/window_image_detail.html" %} + </div> + {% endwith %}{% endif %} + {% for image in item.images_without_main_image.all %} + <div id="lightgallery-{{window_id}}-caption-{{forloop.counter}}"> <img src="{{BASE_URL}}{{image.thumbnail.url}}"> {% include "ishtar/blocks/window_image_detail.html" %} </div> |