diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-08 16:24:05 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-09 09:51:52 +0100 |
| commit | 56f912402c97b5d26e36073eed2803ef513af639 (patch) | |
| tree | 34ecb58afbf9f75263741b363846c6d278878e82 | |
| parent | 4214cac32be4062fc930694dfe8e31f89e315ba6 (diff) | |
| download | Ishtar-56f912402c97b5d26e36073eed2803ef513af639.tar.bz2 Ishtar-56f912402c97b5d26e36073eed2803ef513af639.zip | |
🐛 sheet: fix display when thumbnail is missing (refs #6523)
| -rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 2 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image.html | 4 |
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}}"> |
