{% extends widget.get_base_template %} {% load thumbnail %} {% block content %} {% with widget.get_size as size %} {% if widget.detail == "open_modal" %} {% thumbnail widget.image.file widget.get_size as image %} {% endthumbnail %} {% endif %} {% if widget.detail == "go_to_page" %} {% endif %} {% if widget.size %} {% thumbnail widget.image.file size format="PNG" as thumb %} {% endthumbnail %} {% else %} {% endif %} {% if widget.detail %} {% endif %} {% endwith %} {% endblock %}