{% load media_tree_thumbnail %} {% spaceless %} {% if image_node.link %}{% endif %} {% block image %} {% if thumbnail_size %} {% thumbnail image_node thumbnail_size as thumb %} {{ image_node.alt }} {% else %} {{ image_node.alt }} {% endif %} {% endblock %} {% if image_node.link %}{% endif %} {% if thumbnail_size %} {% endif %} {% endspaceless %} {% if image_node.has_metadata %} {% block caption %} {{ image_node.get_caption_formatted }} {% endblock %} {% endif %}