Remove hotjar.
[wolnelektury.git] / src / wolnelektury / templates / main_page.html
1 {% extends "base/base.html" %}
2 {% load latest_blog_posts from blog %}
3 {% load carousel from social_tags %}
4 {% load static from staticfiles %}
5 {% load i18n catalogue_tags infopages_tags %}
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 body %}
15   {% spaceless %}
16     {% carousel 'main' %}
17
18     <section id="main-library">
19       <h1>{% trans "In our digital library you will find" %}</h1>
20       <div class="main-library-row">
21         <div class="covers">
22           {% for book in best %}
23             {{ book.mini_box }}
24           {% endfor %}
25         </div>
26         <a href="{% url "book_list" %}">
27           <div class="note white-box normal-text" style="font-size: 18px">
28             {% trans "and many other books, poems, pictures, audiobooks…" %}
29           </div>
30         </a>
31       </div>
32     </section>
33
34     <section id="main-theme">
35       <h1>{% trans "Motifs and themes" %}</h1>
36       <div class="white-box normal-text">
37         <h2>{% trans "Theme" %}: {{ theme }}</h2>
38         <p>{% trans "Explore works with the same theme" %}</p>
39         {% for book in theme_books %}
40           {{ book.mini_box }}
41         {% endfor %}
42         {% if theme_fragment %}
43           {% cache 3600 fragment_promo theme_fragment.pk %}
44             {% include 'catalogue/fragment_promo.html' with fragment=theme_fragment %}
45           {% endcache %}
46         {% endif %}
47       </div>
48       <a class="more" href="{% url 'theme_catalogue' %}">{% trans "See motifs catalog" %}</a>
49     </section>
50
51     {% if collection %}
52       <section>
53         <h1>{% trans "Collections" %}</h1>
54         {{ collection.box }}
55         <a class="more" href="{% url 'catalogue_collections' %}">{% trans "See collections catalog" %}</a>
56       </section>
57     {% endif %}
58
59     <section>
60       <h1>{% trans "Recent publications" %}</h1>
61         {% for book in last_published %}
62           {{ book.mini_box }}
63         {% endfor %}
64       <a class="more" href="{% url 'recent_list' %}">{% trans "More recent publications" %}</a>
65     </section>
66
67     <div class="clearboth"></div>
68
69     <section class="infopages-box">
70       <h1>{% trans "News" %}</h1>
71       {% cache 1800 latest_blog_posts %}
72         {% latest_blog_posts %}
73       {% endcache %}
74     </section>
75
76     <section class="infopages-box">
77       <h1>{% trans "Utilities" %}</h1>
78
79       <ul>
80         <li><a href="{% url 'suggest' %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
81         <!--li><a href="http://turniej.wolnelektury.pl">Turniej Elektrybałtów</a></li-->
82         <li><a href="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
83         <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
84         <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
85         <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
86         <li><a href="{% url 'api' %}">API</a></li>
87         <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
88         <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
89         <li><a href="http://polski.wolnelektury.pl" lang="pl">Materiały do nauki j. polskiego</a></li>
90         <li><a href="{% url 'subscribe' %}">{% trans "Newsletter" %}</a></li>
91       </ul>
92     </section>
93
94     <section class="infopages-box">
95       <h1>{% trans "Information" %}</h1>
96       <ul>
97         <li><a href="https://nowoczesnapolska.org.pl/prywatnosc/">{% trans "Privacy policy" %}</a></li>
98         {% infopages_on_main %}
99       </ul>
100
101       <div class="social-links">
102         <a href="https://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268" title='Wolne Lektury @ Facebook'>
103           <img src="{% static "img/social/f.png" %}" alt="Wolne Lektury @ Facebook" />
104         </a>
105         <a href="https://nk.pl/profile/30441509" title='Wolne Lektury @ NK'>
106           <img src="{% static "img/social/nk.png" %}" alt="Wolne Lektury @ NK.pl" />
107         </a>
108       </div>
109     </section>
110   {% endspaceless %}
111 {% endblock %}
112
113
114 {% block add_footer %}
115   {% spaceless %}
116     {% if cite %}
117       <p>
118         {% trans "Image used:" %}
119         {% cache 3600 cite_info cite.pk %}
120           {% include 'social/cite_info.html' %}
121         {% endcache %}
122       </p>
123     {% endif %}
124   {% endspaceless %}
125 {% endblock %}