3 {% with text=insert.choose %}
4 <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.own_colors %}background-color: {{ text.background_color }};{% endif %}" data-paragraphs="{{ insert.paragraphs }}" data-textid="{{ text.pk }}">
5 <a href="{{ insert.url }}">
6 <div class="text" style="{% if text.own_colors %}color:{{ text.text_color }}{% endif %}">
7 {{ text.text|safe|linebreaks }}
10 <img src="{% thumbnail text.image '120x120' as thumb %}{{ thumb.url }}{% empty %}{{ text.image.url }}{% endthumbnail %}">