blob: 66e6a9e2ffe1b5f12a45ab96b59414522634995f (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{% load i18n %}{% if item.images.count %}
{% if output == "ODT" or output == "PDF"%}
{% include "ishtar/blocks/window_image_odt.html" %}
{% else %}
<div class="lightgallery-captions">
{% if item.main_image %}{% with image=item.main_image %}
<div id="lightgallery-{{window_id}}-caption-0">
<span class="close">×</span>
{% include "ishtar/blocks/window_image_detail.html" %}
<a href="{% url 'edit-document' image.pk %}">
{% trans "Modify" %} <i class="fa fa-pencil"></i>
</a>
</div>
{% endwith %}{% endif %}
{% for image in item.images_without_main_image.all %}
<div id="lightgallery-{{window_id}}-caption-{{forloop.counter}}">
<span class="close">×</span>
{% include "ishtar/blocks/window_image_detail.html" %}
<a href="{% url 'edit-document' image.pk %}">
{% trans "Modify" %} <i class="fa fa-pencil"></i>
</a>
</div>
{% endfor %}
</div>
<div id="lightgallery-{{window_id}}">
{% if item.main_image %}{% 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="{{BASE_URL}}{{image.thumbnail.url}}">
</a>
{% endwith %}{% endif %}
{% for image in item.images_without_main_image.all %}
<a data-sub-html="#lightgallery-{{window_id}}-caption-{{forloop.counter}}"
href="{{image.image.url}}" class="lightgallery-subimage">
<img src="{{BASE_URL}}{{image.thumbnail.url}}">
</a>
{% endfor %}
</div>
{% endif%}
{% endif%}
|