{% extends "base.html" %}
-{% load cache i18n catalogue_tags infopages_tags %}
+{% load cache chunks i18n catalogue_tags infopages_tags social_tags %}
{% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %}
{% block body %}
- <blockquote id="big-cite">
- <a href='http://google.com'>
- <h2 class="mono">Jarosław Lipszyc poleca:</h2>
- <p id="big-cite-text">Dobranoc, obróć jeszcze raz na mnie oczęta,<br/>
- (…) Daj mi pierś ucałować<br/>
- Dobranoc, zapięta.</p>
- <p class="mono" id="big-cite-source">Adam Mickiewicz, Dziady część III</p>
- </a>
- </blockquote>
-
+ <div id="big-cite">
+ {% cite_promo %}
+ </div>
{% spaceless %}
<div id="promo-box">
- <div class="grid-line" id="promo-box-header">
- <h2 class="mono">Trwa konkurs</h2>
- </div>
- <div id="promo-box-body">
- <p id="promo-box-title" class="mono"><span>Konkurs poezji automatycznej</span></p>
- <div id="promo-box-content">
- <p>Znacie Leśmianatora? To niewielki skrypt miskujący na życzenie
- wiersze z Wolnych Lektur.</p>
- </div>
- </div>
+ {% chunk "promo" %}
</div>
- <h2 class="main-last"><span class="mono">Ostatnie publikacje</span></h2>
- {% for book in last_published %}
- {{ book.mini_box }}
- {% endfor %}
+ <h2 class="main-last"><span class="mono">{% trans "Recent publications" %}</span></h2>
+ {% cache 60 last-published-on-main %}
+ {% for book in last_published %}
+ {% book_mini book %}
+ {% endfor %}
+ {% endcache %}
<div class="clearboth"></div>
<div class="infopages-box">
- <h2><span class='mono'>Aktualności</span></h2>
+ <h2><span class='mono'>{% trans "News" %}</span></h2>
{% cache 1800 latest-blog-posts %}
{% latest_blog_posts "http://nowoczesnapolska.org.pl/category/wolne-lektury/feed/" %}
{% endcache %}
<div class="infopages-box">
- <h2><span class='mono'>Narzędzia</span></h2>
+ <h2><span class='mono'>{% trans "Utilities" %}</span></h2>
<ul>
<li><a href="{% url suggest %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
<li><a href="http://turniej.wolnelektury.pl">Turniej Elektrybałtów</a></li>
<li><a href="{% url lesmianator %}">Leśmianator</a></li>
- <li><a href="">{% trans "Mobile app" %}</a></li>
- <li><a href="{% url infopage "widget" %}">{% trans "Widget" %}</a></li>
- <li><a href="">{% trans "Public domain counter" %}</a></li>
+ <!--li><a href="{% url infopage "widget" %}">{% trans "Widget" %}</a></li-->
<li><a href="{% url suggest_publishing %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
+ <li><a href="{% url publish_plan %}">{% trans "Publishing plan" %}</a></li>
</ul>
</div>
<div class="infopages-box">
- <h2><span class='mono'>Informacje</span></h2>
-
- {% infopages_on_main %}
+ <h2><span class='mono'>{% trans "Information" %}</span></h2>
+ {% cache 60 infopages-on-main LANGUAGE_CODE %}
+ {% infopages_on_main %}
+ {% endcache %}
<div class="social-links">
- <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="{{ STATIC_URL }}img/social/facebook.png" alt="WolneLektury @ Facebook" /></a>
- <a href="http://nk.pl/profile/30441509"><img src="{{ STATIC_URL }}img/social/naszaklasa.png" alt="WolneLektury @ NK" /></a>
+ <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"
+ title='Wolne Lektury @ Facebook'>f</a>
+ <a href="http://nk.pl/profile/30441509"
+ title='Wolne Lektury @ NK'>nk</a>
</div>
</div>
{% endspaceless %}
{% endblock %}
+
+
+{% block add_footer %}
+<p>{% trans "Image used:" %}
+<a href="http://www.flickr.com/photos/horiavarlan/4268896468/">Hardcover book gutter and pages</a>,
+Horia Varlan@Flickr,
+<a href="http://creativecommons.org/licenses/by/2.0/deed.pl">CC BY</a>.
+</p>
+{% endblock %}