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 $('#id_q').labelify({labelledClass: 'blur'});
13 // $('#tags-list ul').addClass('dontsplit');
14 // $('#tags-list').columnize({width: 180});
16 $('#books-list .book').hover(
17 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
18 function() { $(this).css({background: '#FFF'}); }
20 location.href = $('h2 a', this).attr('href');
23 $('#toggle-description').hover(
24 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
25 function() { $(this).css({background: '#EEE'}); }
27 if ($('#description').hasClass('hidden')) {
28 $('#description').slideDown('fast').removeClass('hidden');
29 $('p', this).html('Zwiń opis ▲');
31 $('#description').slideUp('fast').addClass('hidden');
32 $('p', this).html('Rozwiń opis ▼');
36 var target = $('#set-window div.target');
38 $('#set-window').jqm({
42 trigger: 'a.jqm-trigger',
43 onShow: function(hash) {
44 var offset = $(hash.t).offset();
45 target.html('<p><img src="/pliki/img/indicator.gif" /> Ładowanie</p>');
46 hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() },
47 onLoad: function(hash) {
48 $('form', hash.w).ajaxForm({
50 success: function() { setTimeout(function() { $('#set-window').jqmHide() }, 1000) }
58 <h1>{% title_from_tags tags %}</h1>
59 <form action="." method="get" accept-charset="utf-8" id="search-form">
62 <li class="category"><a href="{% catalogue_url tag %}">{{ tag }}</a> | <a href="{% catalogue_url tags -tag %}">x</a></li>
64 <li>{{ form.q }} <input type="submit" value="Szukaj"/></li>
68 {% autopaginate books 10 %}
70 {% with tags|last as last_tag %}
71 {% if last_tag.has_description %}
72 <div id="description">
73 {{ last_tag.description|safe }}
75 <div id="toggle-description"><p>Zwiń opis ▲</p></div>
79 {% for book in books %}
80 <li>{% include "catalogue/_book.html" %}</li>
86 <div class="dontsplit">
87 {% if categories.set %}
90 {% for set in categories.set %}
91 <li><a href="{% catalogue_url tags set %}">{{ set }} ({{ set.count }})</a></li>
96 <div class="dontsplit">
97 {% if categories.author %}
100 {% for author in categories.author %}
101 <li><a href="{% catalogue_url tags author %}">{{ author }} ({{ author.count }})</a></li>
106 <div class="dontsplit">
107 {% if categories.epoch %}
110 {% for epoch in categories.epoch %}
111 <li><a href="{% catalogue_url tags epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
116 <div class="dontsplit">
117 {% if categories.kind %}
120 {% for kind in categories.kind %}
121 <li><a href="{% catalogue_url tags kind %}">{{ kind }} ({{ kind.count }})</a></li>
126 <div class="dontsplit">
127 {% if categories.genre %}
128 <h2>Gatunki literackie</h2>
130 {% for genre in categories.genre %}
131 <li><a href="{% catalogue_url tags genre %}">{{ genre }} ({{ genre.count }})</a></li>
136 <div class="dontsplit">
137 {% if categories.theme %}
140 {% for theme in categories.theme %}
141 <li><a href="{% catalogue_url tags theme %}">{{ theme }} ({{ theme.count }})</a></li>
147 <div id="set-window">
148 <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
150 <p><img src="/pliki/img/indicator.gif" /> Ładowanie</p>