Commit e3654337 authored by gijs's avatar gijs

Check image exists

parent 3315e87f
......@@ -94,21 +94,23 @@
<section data-container-panel-toggle="previous"><img src="{% static 'contour/images/arrow-left-white.svg' %}"></section>
<section data-container-panel-toggle="next"><img src="{% static 'contour/images/arrow-right-white.svg' %}"></section>
{% for key, image in combined_images %}
<figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" >
<div class="panel-toggle">
<!-- <div class="panel-toggle-handle">
<img src="/static/contour/images/arrow-left-no-tail.svg" class="icon">
</div> -->
</div>
{% if image.image|isGIF %}
<img src="{{ image.image.url }}" class="main-image">
{% else %}
<img src="{% thumbnail image.image 1500x1500 %}" class="main-image">
{% endif %}
{% if image.credit %}<section class="image-credit">{{ image.credit }}</section>{% endif %}
{% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %}
</figure>
{% endfor %}
{% if image and image.image %}
<figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" >
<div class="panel-toggle">
<!-- <div class="panel-toggle-handle">
<img src="/static/contour/images/arrow-left-no-tail.svg" class="icon">
</div> -->
</div>
{% if image.image|isGIF %}
<img src="{{ image.image.url }}" class="main-image">
{% else %}
<img src="{% thumbnail image.image 1500x1500 %}" class="main-image">
{% endif %}
{% if image.credit %}<section class="image-credit">{{ image.credit }}</section>{% endif %}
{% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %}
</figure>
{% endfor %}
{% endif %}
</section>
<div class="panel-toggle">
<div class="panel-toggle-handle">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment