summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/window_image.html
blob: ab1013df921c7afe3018221531a4cb4773cb2649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% load i18n %}{% if item.images.count %}
{% if output == "ODT" or output == "PDF"%}
{% include "ishtar/blocks/window_image_odt.html" %}
{% else %}
<div class="lightgallery-captions">
    {% for image in item.images.all %}
    <div id="lightgallery-{{window_id}}-caption-{{forloop.counter0}}">
        <span class="close">&times</span>
        {% include "ishtar/blocks/window_image_detail.html" %}
        <a href="{% url 'edit-document' image.pk %}">
            {% trans "Modify" %} &nbsp;<i class="fa fa-pencil"></i>
        </a>
    </div>
    {% endfor %}
</div>
<div id="lightgallery-{{window_id}}">
    {% for image in item.images.all %}
    <a data-sub-html="#lightgallery-{{window_id}}-caption-{{forloop.counter0}}" href="{{image.image.url}}"{% if not forloop.first %}
               class="lightgallery-subimage"{% endif %}>
        <img{% if forloop.first %} class='card-img-top'{% endif %} src="{{BASE_URL}}{{image.thumbnail.url}}">
    </a>
    {% endfor %}
</div>
{% endif%}
{% endif%}