1 {% extends "base.html" %}
2 {% load catalogue_tags %}
4 {% block title %}Lektura {{ book.title }} w WolneLektury.pl{% endblock %}
6 {% block bodyid %}book-detail{% endblock %}
9 <script type="text/javascript">
11 $('#toggle-description').hover(
12 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
13 function() { $(this).css({background: '#EEE'}); }
15 if ($('#description').hasClass('hidden')) {
16 $('#description').slideDown('fast').removeClass('hidden');
17 $('p', this).html('Zwiń opis ▲');
19 $('#description').slideUp('fast').addClass('hidden');
20 $('p', this).html('Rozwiń opis ▼');
28 <h1>{{ book.title }}, {{ categories.author|join:", " }}</h1>
29 <form action="{% url main_page %}" method="get" accept-charset="utf-8" id="search-form">
31 {# {% for tag in tags %} #}
32 {# <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li> #}
34 <li class="book-title">{{ book.title }} | <a href="{% url main_page %}">x</a></li>
39 {% if book.has_description %}
40 <div id="description">
41 {{ book.description|safe }}
43 <div id="toggle-description"><p>Zwiń opis ▲</p></div>
47 {% if book.pdf_file %}
48 <li><a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a></li>
50 {% if book.odt_file %}
51 <li><a href="{{ book.odt_file.url }}">Pobierz plik ODT</a></li>
53 {% if book.html_file %}
54 <li><a href="{{ book.html_file.url }}">Pobierz plik HTML</a></li>
59 {% if book.children.all %}
60 <div id="book-children">
61 <h2>Utwory składające się na ten utwór:</h2>
62 {% for book in book.children.all %}
63 <li><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></li>
76 {% for tag in categories.author %}
77 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
82 {% for tag in categories.epoch %}
83 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
88 {% for tag in categories.kind %}
89 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
94 {% for tag in categories.genre %}
95 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
100 <div id="themes-list">
101 {% if categories.theme %}
102 <h2>Motywy w utworze</h2>
104 {% for theme in categories.theme %}