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