Link text change.
[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 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="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
82         <li><a href="{% url 'gallery' %}">{% trans "Art" %}</a></li>
83         <li><a href="{% url 'catalogue' %}">{% trans "All works" %}</a></li>
84
85         <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
86         <li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
87         <li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
88         <li><a href="{% url 'api' %}">API</a></li>
89         <li><a href="{% url 'oaipmh' %}">OAI-PMH</a></li>
90         <li><a href="{% url 'lesmianator' %}" lang="pl">Leśmianator</a></li>
91         <li><a href="https://polski.wolnelektury.pl" lang="pl">Przewodnik dla piszących i czytających</a></li>
92         <li><a href="{% url 'subscribe' %}">{% trans "Newsletter" %}</a></li>
93       </ul>
94     </section>
95
96     <section class="infopages-box">
97       <h1>{% trans "Information" %}</h1>
98       <ul>
99         <li><a href="https://nowoczesnapolska.org.pl/prywatnosc/">{% trans "Privacy policy" %}</a></li>
100         {% infopages_on_main %}
101       </ul>
102
103       <div class="social-links">
104         <a href="https://www.facebook.com/wolnelektury/" title='Wolne Lektury @ Facebook'>
105           <img src="{% static "img/social/f.png" %}" alt="Wolne Lektury @ Facebook" />
106         </a>
107         <a href="https://nk.pl/profile/30441509" title='Wolne Lektury @ NK'>
108           <img src="{% static "img/social/nk.png" %}" alt="Wolne Lektury @ NK.pl" />
109         </a>
110       </div>
111     </section>
112   {% endspaceless %}
113 {% endblock %}
114
115
116 {% block add_footer %}
117   {% spaceless %}
118     {% if cite %}
119       <p>
120         {% trans "Image used:" %}
121         {% cache 3600 cite_info cite.pk %}
122           {% include 'social/cite_info.html' %}
123         {% endcache %}
124       </p>
125     {% endif %}
126   {% endspaceless %}
127 {% endblock %}