Fixed jquery.cuteform.js and added it to compress settings.
[wolnelektury.git] / templates / catalogue / main_page.html
1 {% extends "base.html" %}
2 {% load catalogue chunks %}
3
4 {% block bodyid %}main-page{% endblock %}
5
6 {% block extrahead %}
7     <script type="text/javascript" charset="utf-8">
8         $(function() {
9             $('#id_q').labelify({labelledClass: 'blur'});
10             
11             $('#categories-list ul').columnize({width: 180});
12             $('#themes-list ul').columnize({width: 180});
13         });
14     </script>
15 {% endblock %}
16
17 {% block body %}
18     <form action="." method="get" accept-charset="utf-8" id="search-form">
19         <p>{{ form.q }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url catalogue.views.book_list %}">zobacz spis utworów</a> w naszym zbiorze</p>
20     </form>
21     
22     <div id="tags-list">
23         <div id="categories-list">
24             {% if categories.set %}
25                 <h2>Zestawy</h2>
26                 <ul>
27                 {% for set in categories.set %}
28                     <li><a href="{% catalogue_url set %}">{{ set }}&nbsp;({{ set.count }})</a></li>
29                 {% endfor %}
30                 </ul>
31             {% endif %}
32             
33             {% if categories.author %}
34                 <h2>Autorzy</h2>
35                 <ul>
36                 {% for author in categories.author %}
37                     <li><a href="{% catalogue_url author %}">{{ author }}&nbsp;({{ author.count }})</a></li>
38                 {% endfor %}
39                 </ul>
40             {% endif %}
41             
42             {% if categories.epoch %}
43             <h2>Epoki</h2>
44                 <ul>
45                 {% for epoch in categories.epoch %}
46                     <li><a href="{% catalogue_url epoch %}">{{ epoch }}&nbsp;({{ epoch.count }})</a></li>
47                 {% endfor %}
48                 </ul>                
49             {% endif %}
50             
51             {% if categories.kind %}
52                 <h2>Rodzaje</h2>
53                 <ul>
54                 {% for kind in categories.kind %}
55                     <li><a href="{% catalogue_url kind %}">{{ kind }}&nbsp;({{ kind.count }})</a></li>
56                 {% endfor %}
57                 </ul>                
58             {% endif %}
59             
60             {% if categories.genre %}
61                 <h2>Gatunki literackie</h2>
62                 <ul>
63                 {% for genre in categories.genre %}
64                     <li><a href="{% catalogue_url genre %}">{{ genre }}&nbsp;({{ genre.count }})</a></li>
65                 {% endfor %}
66                 </ul>                
67             {% endif %}
68         </div>
69         <div id="themes-list">
70             {% if categories.theme %}
71                 <h2>Motywy</h2>
72                 <ul>
73                 {% for theme in categories.theme %}
74                     <li><a href="{% catalogue_url theme %}">{{ theme }}&nbsp;({{ theme.count }})</a></li>
75                 {% endfor %}
76                 </ul>                
77             {% endif %}
78         </div>
79         <div class="clearboth"></div>
80     </div>
81     
82     <div id="latest-blog-posts">
83         <h2>Aktualności z naszego bloga</h2>
84         {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %}
85     </div>
86 {% endblock %}