1 {% extends "base.html" %}
2 {% load catalogue_tags chunks cache %}
4 {% block bodyid %}main-page{% endblock %}
7 <div id="site-description">
8 {% chunk "site-description" %}
10 <div class="clearboth"></div>
11 <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
12 <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>
16 <div id="categories-list">
17 {% if categories.set %}
20 {% for set in categories.set %}
21 <li><a href="{% catalogue_url set %}">{{ set }} ({{ set.count }})</a></li>
26 {% if categories.author %}
29 {% for author in categories.author %}
30 <li><a href="{% catalogue_url author %}">{{ author }} ({{ author.count }})</a></li>
35 {% if categories.epoch %}
38 {% for epoch in categories.epoch %}
39 <li><a href="{% catalogue_url epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
44 {% if categories.kind %}
47 {% for kind in categories.kind %}
48 <li><a href="{% catalogue_url kind %}">{{ kind }} ({{ kind.count }})</a></li>
53 {% if categories.genre %}
54 <h2>Gatunki literackie</h2>
56 {% for genre in categories.genre %}
57 <li><a href="{% catalogue_url genre %}">{{ genre }} ({{ genre.count }})</a></li>
62 <div id="themes-list">
63 {% if categories.theme %}
66 {% for theme in fragment_tags %}
67 <li><a href="{% catalogue_url theme %}">{{ theme }} ({{ theme.count }})</a></li>
72 <div class="clearboth"></div>
75 <div id="latest-blog-posts">
76 <h2>Aktualności z naszego bloga</h2>
77 {% cache 1800 latest-blog-posts %}
78 {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %}