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">
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="{% catalogue_url tags %}">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>
64 {% for tag in categories.author %}
65 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
70 {% for tag in categories.epoch %}
71 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
76 {% for tag in categories.kind %}
77 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
82 {% for tag in categories.genre %}
83 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
87 {% if categories.theme %}
88 <h2>Motywy w utworze</h2>
90 {% for theme in categories.theme %}