1 {% extends "base.html" %}
2 {% load catalogue_tags chunks cache %}
4 {% block bodyid %}main-page{% endblock %}
7 <script type="text/javascript" charset="utf-8">
9 $('#categories-list ul').columnize({width: 180});
10 $('#themes-list ul').columnize({width: 180});
16 <div id="site-description">
17 {% chunk "site-description" %}
19 <div class="clearboth"></div>
20 <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
21 <p>{{ form.q }} {{ form.tags }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url catalogue.views.book_list %}">zobacz spis utworów</a> w naszym zbiorze</p>
25 <div id="categories-list">
26 {% if categories.set %}
29 {% for set in categories.set %}
30 <li><a href="{% catalogue_url set %}">{{ set }} ({{ set.count }})</a></li>
35 {% if categories.author %}
38 {% for author in categories.author %}
39 <li><a href="{% catalogue_url author %}">{{ author }} ({{ author.count }})</a></li>
44 {% if categories.epoch %}
47 {% for epoch in categories.epoch %}
48 <li><a href="{% catalogue_url epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
53 {% if categories.kind %}
56 {% for kind in categories.kind %}
57 <li><a href="{% catalogue_url kind %}">{{ kind }} ({{ kind.count }})</a></li>
62 {% if categories.genre %}
63 <h2>Gatunki literackie</h2>
65 {% for genre in categories.genre %}
66 <li><a href="{% catalogue_url genre %}">{{ genre }} ({{ genre.count }})</a></li>
71 <div id="themes-list">
72 {% if categories.theme %}
75 {% for theme in categories.theme %}
76 <li><a href="{% catalogue_url theme %}">{{ theme }} ({{ theme.count }})</a></li>
81 <div class="clearboth"></div>
84 <div id="latest-blog-posts">
85 <h2>Aktualności z naszego bloga</h2>
86 {% cache 1800 latest-blog-posts %}
87 {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %}