Introduce banner styles.
[wolnelektury.git] / src / annoy / templates / annoy / dynamic_insert.html
1 {% load thumbnail %}
2
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 }}
8       </div>
9       {% if text.image %}
10         <img src="{% thumbnail text.image '120x120' as thumb %}{{ thumb.url }}{% empty %}{{ text.image.url }}{% endthumbnail %}">
11       {% endif %}
12     </a>
13   </div>
14 {% endwith %}