diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-08 16:22:33 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-12-08 16:25:46 +0100 |
| commit | d317f541575a7ef59e7b06df5edc5b9c1560512f (patch) | |
| tree | 96a778ff9a51cb8434c3acda2b4b5fa90dc17582 | |
| parent | 297dcee5f4c5e3cce1d8ff52bfdce6d48c05c38b (diff) | |
| download | Ishtar-d317f541575a7ef59e7b06df5edc5b9c1560512f.tar.bz2 Ishtar-d317f541575a7ef59e7b06df5edc5b9c1560512f.zip | |
🐛 sheet: fix display when thumbnail is missing (refs #6523)
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/window_image.html | 4 |
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}}"> |
