1 {% extends "base.html" %}
 
   2 {% load catalogue_tags pagination_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">
 
  30         <p>{{ form.q }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url main_page %}">wróć do strony głównej</a></p>
 
  34         {% if book.has_description %}
 
  35             <div id="description">
 
  36                 {{ book.description|safe }}
 
  38             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
 
  42             {% if book.html_file %}
 
  43                 <li><a href="{% url book_text book.slug %}">Czytaj online</a></li>
 
  45             {% if book.pdf_file %}
 
  46                 <li><a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a></li>
 
  48             {% if book.odt_file %}
 
  49                 <li><a href="{{ book.odt_file.url }}">Pobierz plik ODT</a></li>
 
  51             {% if book.txt_file %}
 
  52                 <li><a href="{{ book.txt_file.url }}">Pobierz plik TXT</a></li>
 
  57         {% if book_children %}
 
  58         {% autopaginate book_children 10 %}
 
  59         <div id="book-children">
 
  61             {% for book in book_children %}
 
  62                 <li>{{ book.short_html }}</li>
 
  77                     {% for tag in categories.author %}
 
  78                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
 
  83                     {% for tag in categories.epoch %}
 
  84                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
 
  89                     {% for tag in categories.kind %}
 
  90                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
 
  95                     {% for tag in categories.genre %}
 
  96                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
 
 101         <div id="themes-list">
 
 102             {% if categories.theme %}
 
 103                 <h2>Motywy w utworze</h2>
 
 105                 {% for theme in categories.theme %}
 
 106                     <li><a href="{{ theme.get_absolute_url }}">{{ theme }}</a></li>
 
 111         <div class="clearboth"></div>