From bf3810a26abe3c53fc11c4afe52e865cd5dbcc54 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 May 2018 16:44:21 +0200 Subject: Display main image as first image (refs #4076) --- .../templates/ishtar/blocks/window_image.html | 43 +++------------------- 1 file changed, 6 insertions(+), 37 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/blocks/window_image.html b/ishtar_common/templates/ishtar/blocks/window_image.html index da5f149e3..751fce377 100644 --- a/ishtar_common/templates/ishtar/blocks/window_image.html +++ b/ishtar_common/templates/ishtar/blocks/window_image.html @@ -1,6 +1,7 @@ {% load i18n %}{% if item.images.count %}
- {% for image in item.images.all %} + {% for associated_image in item.associated_images.all %} + {% with image=associated_image.image %}
× {% if image.name %}

{{image.name}}

{% endif %} @@ -77,49 +78,17 @@
{% endif %}
+ {% endwith %} {% endfor %}
- {% for image in item.images.all %} + {% for associated_image in item.associated_images.all %} + {% with image=associated_image.image %} {% if output != "ODT" %}{% endif %} {% if output != "ODT" %}{% endif %} + {% endwith %} {% endfor %} - {% comment %} - - - - - - - - - - - - - - - - - - - - - - - - - - {% endcomment %}
{% endif%} -- cgit v1.2.3