Now search box is wider only on main page.
[wolnelektury.git] / wolnelektury / templates / catalogue / main_page.html
1 {% extends "base.html" %}
2 {% load catalogue_tags chunks cache %}
3
4 {% block bodyid %}main-page{% endblock %}
5
6 {% block body %}
7     <div id="site-description">
8         {% chunk "site-description" %}
9     </div>
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>
13     </form>
14     
15     <div id="intro">
16         <div id="propaganda">
17             {# <img src="/media/img/shelf.jpg" /> #}
18         </div>
19         <div id="tags-list">
20             <div id="categories-list">
21                 {% if categories.author %}
22                     <h2>Autorzy</h2>
23                     <ul>
24                     {% for author in categories.author %}
25                         <li><a href="{% catalogue_url author %}">{{ author }}&nbsp;({{ author.count }})</a></li>
26                     {% endfor %}
27                     </ul>
28                 {% endif %}
29             
30                 {% if categories.epoch %}
31                 <h2>Epoki</h2>
32                     <ul>
33                     {% for epoch in categories.epoch %}
34                         <li><a href="{% catalogue_url epoch %}">{{ epoch }}&nbsp;({{ epoch.count }})</a></li>
35                     {% endfor %}
36                     </ul>                
37                 {% endif %}
38             
39                 {% if categories.kind %}
40                     <h2>Rodzaje</h2>
41                     <ul>
42                     {% for kind in categories.kind %}
43                         <li><a href="{% catalogue_url kind %}">{{ kind }}&nbsp;({{ kind.count }})</a></li>
44                     {% endfor %}
45                     </ul>                
46                 {% endif %}
47             
48                 {% if categories.genre %}
49                     <h2>Gatunki literackie</h2>
50                     <ul>
51                     {% for genre in categories.genre %}
52                         <li><a href="{% catalogue_url genre %}">{{ genre }}&nbsp;({{ genre.count }})</a></li>
53                     {% endfor %}
54                     </ul>                
55                 {% endif %}
56             </div>
57             <div id="themes-list">
58                 {% if categories.theme %}
59                     <h2>Motywy</h2>
60                     <ul>
61                     {% for theme in fragment_tags %}
62                         <li><a href="{% catalogue_url theme %}">{{ theme }}&nbsp;({{ theme.count }})</a></li>
63                     {% endfor %}
64                     </ul>                
65                 {% endif %}
66             </div>
67             <div class="clearboth"></div>
68         </div>
69     </div>
70     <div class="clearboth"></div>
71     
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" %}
76         {% endcache %}
77     </div>
78 {% endblock %}