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>
17 {# <img src="/media/img/shelf.jpg" /> #}
20 <div id="categories-list">
21 {% if categories.author %}
24 {% for author in categories.author %}
25 <li><a href="{% catalogue_url author %}">{{ author }} ({{ author.count }})</a></li>
30 {% if categories.epoch %}
33 {% for epoch in categories.epoch %}
34 <li><a href="{% catalogue_url epoch %}">{{ epoch }} ({{ epoch.count }})</a></li>
39 {% if categories.kind %}
42 {% for kind in categories.kind %}
43 <li><a href="{% catalogue_url kind %}">{{ kind }} ({{ kind.count }})</a></li>
48 {% if categories.genre %}
49 <h2>Gatunki literackie</h2>
51 {% for genre in categories.genre %}
52 <li><a href="{% catalogue_url genre %}">{{ genre }} ({{ genre.count }})</a></li>
57 <div id="themes-list">
58 {% if categories.theme %}
61 {% for theme in fragment_tags %}
62 <li><a href="{% catalogue_url theme %}">{{ theme }} ({{ theme.count }})</a></li>
67 <div class="clearboth"></div>
70 <div class="clearboth"></div>
72 <div id="latest-blog-posts">
73 <h2>Aktualności z naszego bloga</h2>
74 {% cache 1800 latest-blog-posts %}
75 {% latest_blog_posts "http://wolnepodreczniki.pl/feed/?s=Wolne%20Lektury" %}