7666b61fefda52892f352fa15a547114189e699a
[wolnelektury.git] / templates / catalogue / _book.html
1 <div class="book">
2     {% if request.user.is_authenticated %}
3     <div class="change-sets">
4         <a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">Zestawy</a>
5     </div>
6     {% endif %}
7     <div class="book-thumbnail"></div>
8     <div class="book-description">
9         <h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>
10         <p style="margin: 0">Formaty: 
11             <a href="#">Czytaj online</a>
12             {% if book.pdf_file %}
13                 <a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a>
14             {% endif %}
15             {% if book.odt_file %}
16                 <a href="{{ book.odt_file.url }}">ODT</a>
17             {% endif %}
18             {% if book.html_file %}
19                 <a href="{{ book.html_file.url }}">Pobierz plik HTML</a>
20             {% endif %}
21         </p>
22         <p style="margin: 0">Utwór w kategoriach:
23         {% for tag in book.tags %}
24             {% ifnotequal tag.category "set" %}
25                 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %},{% endif %}
26             {% endifnotequal %}
27         {% endfor %}
28         </p>
29     </div>
30 </div>