de612210a311af53077d0741183ff241b40a8d43
[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 %}
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 footerlink %}#main-footer{% endblock %}
15
16 {% block body %}
17   {% spaceless %}
18     {% carousel 'main' %}
19
20     <section id="main-library">
21       <h1>{% trans "In our digital library you will find" %}</h1>
22       <div class="main-library-row">
23         <div class="covers">
24           {% for book in best %}
25             {{ book.mini_box }}
26           {% endfor %}
27         </div>
28         <div class="note white-box normal-text" style="font-size: 18px">
29           <a href="{% if recommended_collection %}{{ recommended_collection.get_absolute_url }}{% else %}{% url "book_list" %}{% endif %}" style="display: block; height: 100%">
30             {% trans "and many other books, poems, pictures, audiobooks…" %}
31           </a>
32         </div>
33       </div>
34     </section>
35
36     <section>
37       <h1>
38         <a  href="{% url 'recent_list' %}">
39           {% trans "Recent publications" %}
40           &rarr;
41         </a>
42       </h1>
43       {% for book in last_published %}
44         {{ book.mini_box }}
45       {% endfor %}
46     </section>
47
48     {% if collections %}
49       <section>
50         <h1>
51           <a href="{% url 'catalogue_collections' %}">
52             {% trans "Collections" %}
53             &rarr;
54           </a>
55         </h1>
56         {% for collection in collections %}
57           {{ collection.box }}
58         {% endfor %}
59       </section>
60     {% endif %}
61
62     <section id="main-theme">
63       <h1>
64         <a href="{% url 'theme_catalogue' %}">
65           {% trans "Motifs and themes" %}
66           &rarr;
67         </a>
68       </h1>
69       <div class="white-box normal-text">
70         <h2>{% trans "Theme" %}: {{ theme }}</h2>
71         <p>{% trans "Explore works with the same theme" %}</p>
72         {% for book in theme_books %}
73           {{ book.mini_box }}
74         {% endfor %}
75         {% if theme_fragment %}
76           {% cache 3600 fragment_promo theme_fragment.pk %}
77             {% include 'catalogue/fragment_promo.html' with fragment=theme_fragment %}
78           {% endcache %}
79         {% endif %}
80       </div>
81     </section>
82
83     <div id="main-footer" class="clearboth"></div>
84
85     <section class="infopages-box">
86       <h1>{% trans "News" %}</h1>
87       <ol>
88         {% cache 1800 latest_blog_posts %}
89           {% latest_blog_posts %}
90         {% endcache %}
91       </ol>
92     </section>
93
94     <section class="infopages-box">
95       <h1>{% trans "Utilities" %}</h1>
96
97       <ul>
98         <li><a href="{% url 'suggest' %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
99         <li><a href="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
100         <li><a href="{% url 'gallery' %}">{% trans "Art" %}</a></li>
101         <li><a href="{% url 'catalogue' %}">{% trans "All works" %}</a></li>
102
103         <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
104         <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
105         <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
106         <li><a href="{% url 'api' %}">API</a></li>
107         <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
108         <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
109         <li><a href="https://polski.wolnelektury.pl" lang="pl">Przewodnik dla piszących i czytających</a></li>
110         <li><a href="{% url 'subscribe' %}">{% trans "Newsletter" %}</a></li>
111       </ul>
112     </section>
113
114     <section class="infopages-box">
115       <h1>{% trans "Information" %}</h1>
116       <ul>
117         <li><a href="https://nowoczesnapolska.org.pl/prywatnosc/">{% trans "Privacy policy" %}</a></li>
118         {% infopages_on_main %}
119       </ul>
120
121       <div class="social-links">
122         <a href="https://www.facebook.com/wolnelektury/" title='{% trans "Follow us on Facebook" %}'>
123           <img src="{% static "img/social/f.png" %}" alt="Wolne Lektury @ Facebook" />
124         </a>
125       </div>
126     </section>
127   {% endspaceless %}
128 {% endblock %}
129
130
131 {% block add_footer %}
132   {% spaceless %}
133     {% if cite %}
134       <p>
135         {% trans "Image used:" %}
136         {% cache 3600 cite_info cite.pk %}
137           {% include 'social/cite_info.html' %}
138         {% endcache %}
139       </p>
140     {% endif %}
141   {% endspaceless %}
142 {% endblock %}