c3a73e89aea326c1f60e3ae3f6fa85f8faeeabca
[wolnelektury.git] / apps / social / templates / social / cite_promo.html
1 {% load i18n %}
2
3 {% if cite %}
4 <a href="{{ cite.link }}" class="cite{% if cite.small %} cite-small{% endif %}">
5     {% if cite.vip %}
6         <p class='vip mono'><span>{{ cite.vip }} {% trans "recommends" %}:</span></p>
7     {% endif %}
8     <blockquote class="cite-body">
9         <span>{{ cite.text|linebreaksbr|safe }}</span>
10     </blockquote>
11     {% if cite.book %}
12     <p class="source mono"><span>{{ cite.book.pretty_title }}</span></p>
13     {% endif %}
14 </a>
15 {% else %}
16     {% if fallback %}
17         {% load fragment_promo from catalogue_tags %}
18         {% fragment_promo ctx %}
19     {% endif %}
20 {% endif %}