{% load thumbnail filer_tags filer_image_tags %}{% spaceless %} {% if link %}{% endif %} {% if instance.image %} {% if instance.use_original_image %} {% else %} {% thumbnail instance.image size crop=opts.crop upscale=opts.upscale subject_location=opts.subject_location as thumbnail %} {% endif %} {% else %} {# just a plain link to some external image #} {% endif %} {% with image_trans=instance.image.translation %} {% if image_trans.caption or image_trans.description %} {% if image_trans.caption %}{{ image_trans.caption }}{% endif %}
{% if image_trans.description %}{{ image_trans.description }}{% endif %}
{% endif %} {% endwith %} {% if link %}
{% endif %} {% endspaceless %}