Added complex books and organized books in folders.
[wolnelektury.git] / wolnelektury / templates / catalogue / fragment_short.html
1 <div class="fragment">
2     {# <div class="change-sets"> #}
3     {#     <a href="{% url catalogue.views.fragment_sets fragment.id %}" class="jqm-trigger">Półki</a> #}
4     {# </div> #}
5     {% if fragment.short_text %}
6     <div class='fragment-short-text'>
7         {{ fragment.short_text|safe }}
8         <a href="#">↓ Rozwiń fragment ↓</a>
9     </div>
10     {% endif %}
11     <div class="fragment-text" {% if fragment.short_text %}style="display:none;"{% endif %}>
12         {{ fragment.text|safe }}
13         {% if fragment.short_text %}
14             <a href="#">↑ Zwiń fragment ↑</a>
15         {% endif %}
16     </div>
17     <div class="fragment-metadata">
18         <p><a href="{{ book.get_absolute_url }}">{{ book.title }}</a>, {{ book_authors|join:","|safe }}
19            <a href="{{ fragment.get_absolute_url }}">(Zobacz w utworze)</a></p>
20     </div>
21     <div class="clearboth"></div>
22 </div>