1 {% extends "base.html" %}
2 {% load catalogue_tags pagination_tags %}
4 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
6 {% block bodyid %}books{% endblock %}
9 <script type="text/javascript">
12 $('#books-list .book').hover(
13 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
14 function() { $(this).css({background: '#FFF'}); }
16 location.href = $('h2 a', this).attr('href');
19 $('#toggle-description').hover(
20 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
21 function() { $(this).css({background: '#EEE'}); }
23 if ($('#description').hasClass('hidden')) {
24 $('#description').slideDown('fast').removeClass('hidden');
25 $('p', this).html('Zwiń opis ▲');
27 $('#description').slideUp('fast').addClass('hidden');
28 $('p', this).html('Rozwiń opis ▼');
32 var target = $('#set-window div.target');
34 $('#set-window').jqm({
38 trigger: 'a.jqm-trigger',
39 onShow: function(hash) {
40 var offset = $(hash.t).offset();
41 target.html('<p><img src="/media/img/indicator.gif" /> Ładowanie</p>');
42 hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() },
43 onLoad: function(hash) {
44 $('form', hash.w).ajaxForm({
46 success: function() { setTimeout(function() { $('#set-window').jqmHide() }, 1000) }
55 <h1>{% title_from_tags tags %}</h1>
56 {% breadcrumbs tags %}
58 {% autopaginate object_list 10 %}
60 {% with tags|last as last_tag %}
61 {% if last_tag.has_description %}
62 <div id="description">
63 {{ last_tag.description|safe }}
65 <div id="toggle-description"><p>Zwiń opis ▲</p></div>
69 {% for book in object_list %}
70 <li>{{ book.short_html }}</li>
76 <div class="dontsplit">
77 {% if categories.set %}
80 {% for set in categories.set %}
81 <li><a href="{% catalogue_url tags set %}">{{ set }} ({{ set.count }})</a></li>
86 <div class="dontsplit">
87 {% if categories.author %}
90 {% for author in categories.author %}
91 <li><a href="{% catalogue_url tags author %}">{{ author }} ({{ author.count }})</a></li>
96 <div class="dontsplit">
97 {% if categories.epoch %}
100 {% for epoch in categories.epoch %}
101 <li><a href="{% catalogue_url tags epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
106 <div class="dontsplit">
107 {% if categories.kind %}
110 {% for kind in categories.kind %}
111 <li><a href="{% catalogue_url tags kind %}">{{ kind }} ({{ kind.count }})</a></li>
116 <div class="dontsplit">
117 {% if categories.genre %}
118 <h2>Gatunki literackie</h2>
120 {% for genre in categories.genre %}
121 <li><a href="{% catalogue_url tags genre %}">{{ genre }} ({{ genre.count }})</a></li>
126 <div class="dontsplit">
127 {% if categories.theme %}
130 {% for theme in categories.theme %}
131 <li><a href="{% catalogue_url tags theme %}">{{ theme }} ({{ theme.count }})</a></li>
137 <div id="set-window">
138 <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
140 <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>