1 {% extends "base.html" %}
2 {% load catalogue pagination_tags %}
4 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
6 {% block bodyid %}books{% endblock %}
9 <script type="text/javascript">
11 // $('#tags-list ul').addClass('dontsplit');
12 // $('#tags-list').columnize({width: 180});
14 $('#books-list .book').hover(
15 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
16 function() { $(this).css({background: '#FFF'}); }
18 location.href = $('h2 a', this).attr('href');
21 $('#toggle-description').hover(
22 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
23 function() { $(this).css({background: '#EEE'}); }
25 if ($('#description').hasClass('hidden')) {
26 $('#description').slideDown('fast').removeClass('hidden');
27 $('p', this).html('Zwiń opis ▲');
29 $('#description').slideUp('fast').addClass('hidden');
30 $('p', this).html('Rozwiń opis ▼');
34 var target = $('#set-window div.target');
36 $('#set-window').jqm({
40 trigger: 'a.jqm-trigger',
41 onShow: function(hash) {
42 var offset = $(hash.t).offset();
43 target.html('<p><img src="/media/img/indicator.gif" /> Ładowanie</p>');
44 hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() },
45 onLoad: function(hash) {
46 $('form', hash.w).ajaxForm({
48 success: function() { setTimeout(function() { $('#set-window').jqmHide() }, 1000) }
56 <h1>{% title_from_tags tags %}</h1>
57 <form action="." method="get" accept-charset="utf-8" id="search-form">
60 <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li>
62 <li>{{ form.q }} <input type="submit" value="Szukaj"/></li>
66 {% autopaginate books 10 %}
68 {% with tags|last as last_tag %}
69 {% if last_tag.has_description %}
70 <div id="description">
71 {{ last_tag.description|safe }}
73 <div id="toggle-description"><p>Zwiń opis ▲</p></div>
77 {% for book in books %}
78 <li>{% include "catalogue/_book.html" %}</li>
84 <div class="dontsplit">
85 {% if categories.set %}
88 {% for set in categories.set %}
89 <li><a href="{% catalogue_url tags set %}">{{ set }} ({{ set.count }})</a></li>
94 <div class="dontsplit">
95 {% if categories.author %}
98 {% for author in categories.author %}
99 <li><a href="{% catalogue_url tags author %}">{{ author }} ({{ author.count }})</a></li>
104 <div class="dontsplit">
105 {% if categories.epoch %}
108 {% for epoch in categories.epoch %}
109 <li><a href="{% catalogue_url tags epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
114 <div class="dontsplit">
115 {% if categories.kind %}
118 {% for kind in categories.kind %}
119 <li><a href="{% catalogue_url tags kind %}">{{ kind }} ({{ kind.count }})</a></li>
124 <div class="dontsplit">
125 {% if categories.genre %}
126 <h2>Gatunki literackie</h2>
128 {% for genre in categories.genre %}
129 <li><a href="{% catalogue_url tags genre %}">{{ genre }} ({{ genre.count }})</a></li>
134 <div class="dontsplit">
135 {% if categories.theme %}
138 {% for theme in categories.theme %}
139 <li><a href="{% catalogue_url tags theme %}">{{ theme }} ({{ theme.count }})</a></li>
145 <div id="set-window">
146 <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
148 <p><img src="/media/img/indicator.gif" /> Ładowanie</p>