summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_image.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_image.html b/ishtar_common/templates/ishtar/blocks/window_image.html
index ccdb4b332..702947a4d 100644
--- a/ishtar_common/templates/ishtar/blocks/window_image.html
+++ b/ishtar_common/templates/ishtar/blocks/window_image.html
@@ -30,13 +30,13 @@
{% endif %}{% endfor %}
</div>
<div id="lightgallery-{{window_id}}">
- {% if item.main_image and item.main_image.image %}{% with image=item.main_image %}
+ {% if item.main_image and item.main_image.image and item.main_image.thumbnail %}{% with image=item.main_image %}
<a data-sub-html="#lightgallery-{{window_id}}-caption-0"
href="{{image.image.url}}" class="window-main-image">
<img class='card-img-top' src="{{image.thumbnail.url}}">
</a>
{% endwith %}{% endif %}
- {% for image in item.images_without_main_image.all %}{% if image.image %}
+ {% for image in item.images_without_main_image.all %}{% if image.image and image.thumbnail %}
<a data-sub-html="#lightgallery-{{window_id}}-caption-{{forloop.counter}}"
href="{{image.image.url}}" class="lightgallery-subimage">
<img src="{{image.thumbnail.url}}">