user settings
[wolnelektury.git] / wolnelektury / templates / catalogue / fragment_short.html
1 {% load i18n %}
2 {% load book_title_html from catalogue_tags %} 
3
4 <div class="cite {% if fragment.short_text %}fragment-with-short{% endif %}">
5         {% if fragment.short_text %}
6         <div class="fragment-short-text">
7         <blockquote class="cite-body">
8                         <a href="{{ fragment.get_absolute_url }}" class="fragment">
9                         {{ fragment.short_text|safe }}
10                         </a>
11             </blockquote>
12                 <a href="#" class="toggle mono">↓ {% trans "Expand fragment" %} ↓</a>
13     </div>
14     {% endif %}
15         <div class="fragment-long-text" {% if fragment.short_text %}style="display:none;"{% endif %}>
16     <blockquote class="cite-body fragment-text">
17                 <a href="{{ fragment.get_absolute_url }}" class="fragment">
18         {{ fragment.text|safe }}
19                 </a>
20     </blockquote>
21                 {% if fragment.short_text %}
22                 <a href="#" class="toggle mono">↑ {% trans "Hide fragment" %} ↑</a>
23                 {% endif %}
24     </div>
25 <p class="mono source">{% book_title_html fragment.book %}</p>
26 </div>