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