Commit e3654337 authored by gijs's avatar gijs

Check image exists

parent 3315e87f
...@@ -94,21 +94,23 @@ ...@@ -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="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> <section data-container-panel-toggle="next"><img src="{% static 'contour/images/arrow-right-white.svg' %}"></section>
{% for key, image in combined_images %} {% for key, image in combined_images %}
<figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" > {% if image and image.image %}
<div class="panel-toggle"> <figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" >
<!-- <div class="panel-toggle-handle"> <div class="panel-toggle">
<img src="/static/contour/images/arrow-left-no-tail.svg" class="icon"> <!-- <div class="panel-toggle-handle">
</div> --> <img src="/static/contour/images/arrow-left-no-tail.svg" class="icon">
</div> </div> -->
{% if image.image|isGIF %} </div>
<img src="{{ image.image.url }}" class="main-image"> {% if image.image|isGIF %}
{% else %} <img src="{{ image.image.url }}" class="main-image">
<img src="{% thumbnail image.image 1500x1500 %}" class="main-image"> {% else %}
{% endif %} <img src="{% thumbnail image.image 1500x1500 %}" class="main-image">
{% if image.credit %}<section class="image-credit">{{ image.credit }}</section>{% endif %} {% endif %}
{% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %} {% if image.credit %}<section class="image-credit">{{ image.credit }}</section>{% endif %}
</figure> {% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %}
{% endfor %} </figure>
{% endfor %}
{% endif %}
</section> </section>
<div class="panel-toggle"> <div class="panel-toggle">
<div class="panel-toggle-handle"> <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