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 // $('#tags-list ul').addClass('dontsplit');
13 // $('#tags-list').columnize({width: 180});
15 $('#books-list .book').hover(
16 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
17 function() { $(this).css({background: '#FFF'}); }
19 location.href = $('h2 a', this).attr('href');
22 $('#toggle-description').hover(
23 function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
24 function() { $(this).css({background: '#EEE'}); }
26 if ($('#description').hasClass('hidden')) {
27 $('#description').slideDown('fast').removeClass('hidden');
28 $('p', this).html('Zwiń opis ▲');
30 $('#description').slideUp('fast').addClass('hidden');
31 $('p', this).html('Rozwiń opis ▼');
35 var target = $('#set-window div.target');
37 $('#set-window').jqm({
41 trigger: 'a.jqm-trigger',
42 onShow: function(hash) {
43 var offset = $(hash.t).offset();
44 target.html('<p><img src="/media/img/indicator.gif" /> Ładowanie</p>');
45 hash.w.css({position: 'absolute', left: offset.left, top: offset.top}).show() },
46 onLoad: function(hash) {
47 $('form', hash.w).ajaxForm({
49 success: function() { setTimeout(function() { $('#set-window').jqmHide() }, 1000) }
58 <h1>{% title_from_tags tags %}</h1>
59 {% breadcrumbs tags %}
61 {% autopaginate object_list 10 %}
63 {% with tags|last as last_tag %}
64 {% if last_tag.has_description %}
65 <div id="description">
66 {{ last_tag.description|safe }}
68 <div id="toggle-description"><p>Zwiń opis ▲</p></div>
72 {% for book in object_list %}
73 <li>{{ book.short_html }}</li>
79 <div class="dontsplit">
80 {% if categories.set %}
83 {% for set in categories.set %}
84 <li><a href="{% catalogue_url tags set %}">{{ set }} ({{ set.count }})</a></li>
89 <div class="dontsplit">
90 {% if categories.author %}
93 {% for author in categories.author %}
94 <li><a href="{% catalogue_url tags author %}">{{ author }} ({{ author.count }})</a></li>
99 <div class="dontsplit">
100 {% if categories.epoch %}
103 {% for epoch in categories.epoch %}
104 <li><a href="{% catalogue_url tags epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
109 <div class="dontsplit">
110 {% if categories.kind %}
113 {% for kind in categories.kind %}
114 <li><a href="{% catalogue_url tags kind %}">{{ kind }} ({{ kind.count }})</a></li>
119 <div class="dontsplit">
120 {% if categories.genre %}
121 <h2>Gatunki literackie</h2>
123 {% for genre in categories.genre %}
124 <li><a href="{% catalogue_url tags genre %}">{{ genre }} ({{ genre.count }})</a></li>
129 <div class="dontsplit">
130 {% if categories.theme %}
133 {% for theme in categories.theme %}
134 <li><a href="{% catalogue_url tags theme %}">{{ theme }} ({{ theme.count }})</a></li>
140 <div id="set-window">
141 <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
143 <p><img src="/media/img/indicator.gif" /> Ładowanie</p>