Update banner.
[wolnelektury.git] / src / wolnelektury / templates / main_page.html
1 {% extends "base/base.html" %}
2 {% load static from staticfiles %}
3 {% load i18n catalogue_tags infopages_tags %}
4 {% load ssi_include from ssify %}
5 {% load cache %}
6 {% load funding_tags %}
7 {% get_current_language as LANGUAGE_CODE %}
8
9
10 {% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %}
11 {% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %}
12
13 {% block extrahead %}
14 {{ block.super }}
15 {% include "hotjar.html" %}
16 {% endblock %}
17
18 {% block body %}
19   {% spaceless %}
20     {% if cite %}
21       {% cache 3600 main_cite cite.pk %}
22         {% include "social/cite_promo.html" with main=True %}
23       {% endcache %}
24     {% endif %}
25
26     <section id="main-library">
27       <h1>{% trans "In our digital library you will find" %}</h1>
28       <div class="main-library-row">
29         <div class="covers">
30           {% for book in best %}
31             {% cache 86400 book_mini_box book.pk %}
32               {% include 'catalogue/book_mini_box.html' %}
33             {% endcache %}
34           {% endfor %}
35         </div>
36         <a href="{% url "book_list" %}">
37           <div class="note white-box normal-text" style="font-size: 18px">
38             {% trans "and many other books, poems, pictures, audiobooks…" %}
39           </div>
40         </a>
41       </div>
42     </section>
43
44     <section id="main-theme">
45       <h1>{% trans "Motifs and themes" %}</h1>
46       <div class="white-box normal-text">
47         <h2>{% trans "Theme" %}: {{ theme }}</h2>
48         <p>{% trans "Explore works with the same theme" %}</p>
49         {% for book in theme_books %}
50           {% cache 86400 book_mini_box book.pk %}
51             {% include 'catalogue/book_mini_box.html' %}
52           {% endcache %}
53         {% endfor %}
54         {% if theme_fragment %}
55           {% cache 3600 fragment_promo theme_fragment.pk %}
56             {% include 'catalogue/fragment_promo.html' with fragment=theme_fragment %}
57           {% endcache %}
58         {% endif %}
59       </div>
60       <a class="more" href="{% url 'theme_catalogue' %}">{% trans "See motifs catalog" %}</a>
61     </section>
62
63     {% comment %}
64     <section class="tag-box-section">
65       <h1>Autorzy</h1>
66       <a class="tag-box" href="{{ author.get_absolute_url }}">
67         {% ssi_include "catalogue_tag_box" pk=author.pk %}
68       </a>
69       <a class="more" href="{% url 'author_catalogue' %}">Zobacz katalog autorów</a>
70     </section>
71
72     <section class="tag-box-section">
73       <h1>Gatunki</h1>
74       <a class="tag-box" href="{{ genre.get_absolute_url }}">
75         {% ssi_include "catalogue_tag_box" pk=genre.pk %}
76       </a>
77       <a class="more" href="{% url 'genre_catalogue' %}">Zobacz katalog gatunków</a>
78     </section>
79
80     <section class="tag-box-section">
81       <h1>Rodzaje</h1>
82       <a class="tag-box" href="{{ kind.get_absolute_url }}">
83         {% ssi_include "catalogue_tag_box" pk=kind.pk %}
84       </a>
85       <a class="more" href="{% url 'kind_catalogue' %}">Zobacz katalog rodzajów</a>
86     </section>
87
88     <section class="tag-box-section">
89       <h1>Epoki</h1>
90       <a class="tag-box" href="{{ epoch.get_absolute_url }}">
91         {% ssi_include "catalogue_tag_box" pk=epoch.pk %}
92       </a>
93       <a class="more" href="{% url 'epoch_catalogue' %}">Zobacz katalog epok</a>
94     </section>
95     {% endcomment %}
96
97     {% if collection %}
98       <section>
99         <h1>{% trans "Collections" %}</h1>
100         {% cache 3600 collection_box collection.pk LANGUAGE_CODE %}
101           {% include 'catalogue/collection_box.html' %}
102         {% endcache %}
103         <a class="more" href="{% url 'catalogue_collections' %}">{% trans "See collections catalog" %}</a>
104       </section>
105     {% endif %}
106
107     <section>
108       <h1>{% trans "Recent publications" %}</h1>
109         {% for book in last_published %}
110           {% cache 86400 book_mini_box book.pk %}
111             {% include 'catalogue/book_mini_box.html' %}
112           {% endcache %}
113         {% endfor %}
114       <a class="more" href="{% url 'recent_list' %}">{% trans "More recent publications" %}</a>
115     </section>
116
117     <div class="clearboth"></div>
118
119     <section class="infopages-box">
120       <h1>{% trans "News" %}</h1>
121       {% ssi_include 'latest_blog_posts' %}
122     </section>
123
124     <section class="infopages-box">
125       <h1>{% trans "Utilities" %}</h1>
126
127       <ul>
128         <li><a href="{% url 'suggest' %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
129         <!--li><a href="http://turniej.wolnelektury.pl">Turniej Elektrybałtów</a></li-->
130         <li><a href="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
131         <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
132         <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
133         <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
134         <li><a href="{% url 'api' %}">API</a></li>
135         <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
136         <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
137         <li><a href="http://polski.wolnelektury.pl" lang="pl">Materiały do nauki j. polskiego</a></li>
138         <li><a href="{% url 'subscribe' %}">{% trans "Newsletter" %}</a></li>
139       </ul>
140     </section>
141
142     <section class="infopages-box">
143       <h1>{% trans "Information" %}</h1>
144       <ul>
145         <li><a href="https://nowoczesnapolska.org.pl/prywatnosc/">{% trans "Privacy policy" %}</a></li>
146         {% infopages_on_main %}
147       </ul>
148
149       <div class="social-links">
150         <a href="https://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268" title='Wolne Lektury @ Facebook'>
151           <img src="{% static "img/social/f.png" %}" alt="Wolne Lektury @ Facebook" />
152         </a>
153         <a href="https://nk.pl/profile/30441509" title='Wolne Lektury @ NK'>
154           <img src="{% static "img/social/nk.png" %}" alt="Wolne Lektury @ NK.pl" />
155         </a>
156       </div>
157     </section>
158   {% endspaceless %}
159 {% endblock %}
160
161
162 {% block add_footer %}
163   {% spaceless %}
164     {% if cite %}
165       <p>
166         {% trans "Image used:" %}
167         {% cache 3600 cite_info cite.pk %}
168           {% include 'social/cite_info.html' %}
169         {% endcache %}
170       </p>
171     {% endif %}
172   {% endspaceless %}
173 {% endblock %}