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