#10: link do działu literatura
[wolnelektury.git] / src / wolnelektury / templates / main_page.html
1 {% extends "base.html" %}
2 {% load static from staticfiles %}
3 {% load i18n catalogue_tags infopages_tags social_tags %}
4 {% load ssi_include from ssify %}
5
6
7 {% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %}
8 {% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %}
9
10 {% block body %}{% spaceless %}
11
12     {% choose_cite as cite_pk %}
13     {{ cite_pk.if }}
14         {% ssi_include 'social_cite_main' pk=cite_pk %}
15     {{ cite_pk.endif }}
16
17     <section id="main-library">
18         <h1>W naszej cyfrowej bibliotece znajdziesz</h1>
19         <div class="main-library-row">
20             <div class="covers">
21             {% for b in best %}
22                 {% ssi_include 'catalogue_book_mini' pk=b.pk %}
23             {% endfor %}
24             </div>
25             <a href="{% url "book_list" %}">
26                 <div class="note white-box normal-text" style="font-size: 18px">
27                     i wiele innych książek, wierszy, obrazów, audiobooków…
28                 </div>
29             </a>
30         </div>
31     </section>
32
33     <section id="main-theme">
34         <h1>Motywy i tematy</h1>
35         <div class="white-box normal-text">
36         <h2>{% trans "Theme" %}: {{ theme }}</h2>
37         <p>Utwory, w których występuje ten motyw:</p>
38         {% for book in theme_books %}
39             {% ssi_include 'catalogue_book_mini' pk=book.pk %}
40         {% endfor %}
41         {% if theme_fragment %}
42             {% ssi_include 'catalogue_fragment_promo' pk=theme_fragment.pk %}
43         {% endif %}
44         </div>
45         <a class="more" href="{% url 'theme_catalogue' %}">Zobacz katalog motywów</a>
46     </section>
47
48     {% comment %}
49     <section class="tag-box-section">
50         <h1>Autorzy</h1>
51       <a class="tag-box" href="{{ author.get_absolute_url }}">
52       {% ssi_include "catalogue_tag_box" pk=author.pk %}
53       </a>
54         <a class="more" href="{% url 'author_catalogue' %}">Zobacz katalog autorów</a>
55     </section>
56
57     <section class="tag-box-section">
58         <h1>Gatunki</h1>
59       <a class="tag-box" href="{{ genre.get_absolute_url }}">
60       {% ssi_include "catalogue_tag_box" pk=genre.pk %}
61       </a>
62         <a class="more" href="{% url 'genre_catalogue' %}">Zobacz katalog gatunków</a>
63     </section>
64
65     <section class="tag-box-section">
66         <h1>Rodzaje</h1>
67       <a class="tag-box" href="{{ kind.get_absolute_url }}">
68       {% ssi_include "catalogue_tag_box" pk=kind.pk %}
69       </a>
70         <a class="more" href="{% url 'kind_catalogue' %}">Zobacz katalog rodzajów</a>
71     </section>
72
73     <section class="tag-box-section">
74         <h1>Epoki</h1>
75       <a class="tag-box" href="{{ epoch.get_absolute_url }}">
76       {% ssi_include "catalogue_tag_box" pk=epoch.pk %}
77       </a>
78         <a class="more" href="{% url 'epoch_catalogue' %}">Zobacz katalog epok</a>
79     </section>
80     {% endcomment %}
81
82     {% if collection %}
83         <section>
84             <h1>Kolekcje</h1>
85             {% ssi_include 'catalogue_collection_box' pk=collection.pk %}
86             <a class="more" href="{% url 'catalogue_collections' %}">Zobacz katalog kolekcji</a>
87         </section>
88     {% endif %}
89
90     <section>
91         <h1>{% trans "Recent publications" %}</h1>
92             {% for book in last_published %}
93                 {% ssi_include 'catalogue_book_mini' pk=book.pk %}
94             {% endfor %}
95         <a class="more" href="{% url 'recent_list' %}">{% trans "More recent publications" %}</a>
96     </section>
97
98     <div class="clearboth"></div>
99
100     <section class="infopages-box">
101         <h1>{% trans "News" %}</h1>
102         {% ssi_include 'latest_blog_posts' %}
103     </section>
104
105
106     <section class="infopages-box">
107         <h1>{% trans "Utilities" %}</h1>
108
109         <ul>
110             <li><a href="{% url 'suggest' %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
111             <!--li><a href="http://turniej.wolnelektury.pl">Turniej Elektrybałtów</a></li-->
112             <li><a href="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
113             <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
114             <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
115             <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
116             <li><a href="{% url 'api' %}">API</a></li>
117             <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
118             <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
119             <li><a href="http://polski.wolnelektury.pl" lang="pl">Materiały do nauki j. polskiego</a></li>
120
121         </ul>
122     </section>
123
124
125     <section class="infopages-box">
126         <h1>{% trans "Information" %}</h1>
127         <ul>
128             <li><a href="https://nowoczesnapolska.org.pl/prywatnosc/">{% trans "Privacy policy" %}</a></li>
129             {% infopages_on_main %}
130         </ul>
131
132         <div class="social-links">
133             <a href="https://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268" title='Wolne Lektury @ Facebook'>
134                 <img src="{% static "img/social/f.png" %}" alt="Wolne Lektury @ Facebook" />
135             </a>
136             <a href="https://nk.pl/profile/30441509" title='Wolne Lektury @ NK'>
137                 <img src="{% static "img/social/nk.png" %}" alt="Wolne Lektury @ NK.pl" />
138             </a>
139         </div>
140     </section>
141
142
143 {% endspaceless %}{% endblock %}
144
145
146 {% block add_footer %}{% spaceless %}
147 {{ cite_pk.if }}
148     <p>{% trans "Image used:" %}
149     {% ssi_include 'social_cite_info' pk=cite_pk %}
150     </p>
151 {{ cite_pk.endif }}
152 {% endspaceless %}{% endblock %}