summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html2
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_image.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 7d30460a8..d26cbcc76 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -346,7 +346,7 @@
{% endif %}
</div>
-{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}
+{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}
<script type='text/javascript'>
$( "#{{window_id}}-tabs" ).on( "tabsactivate", function( event, ui ) {
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}}">