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:22:33 +0100 |
| commit | 948696a25ef56e32bc04b93fd8802f45090ee6ba (patch) | |
| tree | d2acde7190886bfc02f60a7ac8a03c49c3386a68 /ishtar_common/templates | |
| parent | b54141f82c527beb0acc354229dfbee006324966 (diff) | |
| download | Ishtar-948696a25ef56e32bc04b93fd8802f45090ee6ba.tar.bz2 Ishtar-948696a25ef56e32bc04b93fd8802f45090ee6ba.zip | |
🐛 sheet: fix display when thumbnail is missing (refs #6523)
Diffstat (limited to 'ishtar_common/templates')
| -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}}"> |
