X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/27891467b143d11c13ae44e5051d740be6e6303c..76849e4b3dcc3305edbe86b794b04a0bf4a8467c:/apps/wolnelektury_core/templates/main_page.html diff --git a/apps/wolnelektury_core/templates/main_page.html b/apps/wolnelektury_core/templates/main_page.html index f9ff45ec4..812094fce 100755 --- a/apps/wolnelektury_core/templates/main_page.html +++ b/apps/wolnelektury_core/templates/main_page.html @@ -7,9 +7,12 @@ {% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %} {% block body %} - -
- {% cite_promo %} +
+ {% render_cite cite %}
{% spaceless %} @@ -25,8 +28,8 @@
-

{% trans "Recent publications" %}

- {% cache 60 last-published-on-main %} +

{% trans "Recent publications" %}

+ {% cache 60 last-published-on-main LANGUAGE_CODE %} {% for book in last_published %} {% book_mini book %} {% endfor %} @@ -47,17 +50,18 @@

{% trans "Utilities" %}

@@ -65,18 +69,21 @@

{% trans "Information" %}

+
@@ -89,8 +96,19 @@ {% block add_footer %}

{% trans "Image used:" %} -books about architecture, -saikofish@Flickr, -CC BY NC SA. +{% if cite.image %} + {% if cite.image_link %}{% endif %} + {% if cite.image_title %} + {{ cite.image_title }}{% else %} + untitled{% endif %}{% if cite.image_link %}{% endif %}, + {% if cite.image_author %}{{ cite.image_author }},{% endif %} + {% if cite.image_license_link %}{% endif %} + {{ cite.image_license }} + {% if cite.image_license_link %}{% endif %} +{% else %} + books about architecture, + saikofish@Flickr, + CC BY NC SA. +{% endif %}

{% endblock %}