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>
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>
15 {% if book.odt_file %}
16 <a href="{{ book.odt_file.url }}">ODT</a>
18 {% if book.html_file %}
19 <a href="{{ book.html_file.url }}">Pobierz plik HTML</a>
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 %}