pdnew/themes/default/templates/renderable/image.html

28 lines
786 B
HTML

{% extends 'default/templates/renderable/upload.html' %}
{% block fileview %}
<a href="#modal-image-{{ content.name }}">
<div class="preview">
<img
src="{{ content.url('raw') }}"
{% if content.description %}
alt="{{ content.description }}"
title="{{ content.description }}"
{% endif %}
/>
</div>
</a>
<div id="modal-image-{{ content.name }}" class="modal">
<a href="#__close"></a>
<div class="content">
<img
src="{{ content.url('raw') }}"
{% if content.description %}
alt="{{ content.description }}"
title="{{ content.description }}"
{% endif %}
/>
</div>
</div>
{% endblock %}