{% load thumbnail %}
{% with text=insert.choose %}
- <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 }}">
- <a href="{% url 'club' %}">
+ <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 }}">
+ <a href="{{ insert.url }}">
<div class="text" style="{% if text.own_colors %}color:{{ text.text_color }}{% endif %}">
{{ text.text|safe|linebreaks }}
</div>