1 {% extends "base.html" %}
2 {% load catalogue chunks %}
4 {% block bodyid %}main-page{% endblock %}
7 <script type="text/javascript" charset="utf-8">
9 $('#id_q').labelify({labelledClass: 'blur'});
11 $('#categories-list ul').columnize({width: 180});
12 $('#themes-list ul').columnize({width: 180});
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>
23 <div id="categories-list">
24 {% if categories.set %}
27 {% for set in categories.set %}
28 <li><a href="{% catalogue_url set %}">{{ set }} ({{ set.count }})</a></li>
33 {% if categories.author %}
36 {% for author in categories.author %}
37 <li><a href="{% catalogue_url author %}">{{ author }} ({{ author.count }})</a></li>
42 {% if categories.epoch %}
45 {% for epoch in categories.epoch %}
46 <li><a href="{% catalogue_url epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
51 {% if categories.kind %}
54 {% for kind in categories.kind %}
55 <li><a href="{% catalogue_url kind %}">{{ kind }} ({{ kind.count }})</a></li>
60 {% if categories.genre %}
61 <h2>Gatunki literackie</h2>
63 {% for genre in categories.genre %}
64 <li><a href="{% catalogue_url genre %}">{{ genre }} ({{ genre.count }})</a></li>
69 <div id="themes-list">
70 {% if categories.theme %}
73 {% for theme in categories.theme %}
74 <li><a href="{% catalogue_url theme %}">{{ theme }} ({{ theme.count }})</a></li>
79 <div class="clearboth"></div>
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" %}