X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b39c329ecd604d815de1f772ed9c2e9598db4c46..49fd68327eee961b167b0dbbb80e99d6295afe10:/src/wolnelektury/templates/main_page.html diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index 369d6f603..3ae4bd3e3 100644 --- a/src/wolnelektury/templates/main_page.html +++ b/src/wolnelektury/templates/main_page.html @@ -1,141 +1,337 @@ -{% extends "base/base.html" %} -{% load latest_blog_posts from blog %} -{% load carousel from social_tags %} +{% extends "base.html" %} +{% load i18n %} {% load static %} -{% load i18n catalogue_tags infopages_tags %} -{% load cache %} -{% load funding_tags %} -{% get_current_language as LANGUAGE_CODE %} - - -{% block title %}{% trans "Wolne Lektury internet library" %}{% endblock %} -{% block ogtitle %}{% trans "Wolne Lektury internet library" %}{% endblock %} - -{% block body %} - {% spaceless %} - {% carousel 'main' %} - -
-

{% trans "In our digital library you will find" %}

-
-
- {% for book in best %} - {{ book.mini_box }} - {% endfor %} +{% load thumbnail %} +{% load catalogue_tags %} +{% load social_tags %} +{% load sponsors %} + +{% block under-menu %} + {% comment %} +
+ + {% endcomment %} +{% endblock %} -
-

- - {% trans "Recent publications" %} - → - -

- {% for book in last_published %} - {{ book.mini_box }} - {% endfor %} -
+{% block global-content %} +
- {% if collections %} -
-

- - {% trans "Collections" %} - → - -

- {% for collection in collections %} - {{ collection.box }} - {% endfor %} + {% if widget %} +

{{ widget.description }}

+
+
{% endif %} -
-

- - {% trans "Motifs and themes" %} - → - -

-
-

{% trans "Theme" %}: {{ theme }}

-

{% trans "Explore works with the same theme" %}

- {% for book in theme_books %} - {{ book.mini_box }} - {% endfor %} - {% if theme_fragment %} - {% cache 3600 fragment_promo theme_fragment.pk %} - {% include 'catalogue/fragment_promo.html' with fragment=theme_fragment %} - {% endcache %} - {% endif %} + {% if recommended_collection %} +
+
+ +
+ {% for book in recommended_collection.get_books %} + {% include 'catalogue/book_box.html' %} + {% endfor %} +
+ +
+ +
+ {% endif %} + +
+
+ +
+
+ {% trans 'Dorzuć się!' %} +
+
+

+ {% blocktrans trimmed %} + Nasze książki są dostępne dla tysięcy + dzieciaków dzięki darowiznom od + osób takich jak Ty! + {% endblocktrans %} +

+ {% trans "Dorzuć się!" %} +
+
+
-
+
+
+ {% for ambassador in ambassadors %} +
+ {% thumbnail ambassador.photo '100x100' crop="center" as ambphoto %} + {{ ambassador.name }} + {% endthumbnail %} +

{{ ambassador.name }}

+

+ {{ ambassador.text }} +

+
+ {% endfor %} +
-
-

{% trans "News" %}

- {% cache 1800 latest_blog_posts %} - {% latest_blog_posts %} - {% endcache %} -
+
+ {% preview_ad_homepage %} +
-
-

{% trans "Utilities" %}

- -
-
-

{% trans "Information" %}

- - -
-{% block add_footer %} - {% spaceless %} - {% if cite %} -

- {% trans "Image used:" %} - {% cache 3600 cite_info cite.pk %} - {% include 'social/cite_info.html' %} - {% endcache %} -

- {% endif %} - {% endspaceless %} +
+
+ +
+ {% for book in last_published %} + {% include 'catalogue/book_box.html' %} + {% endfor %} +
+
+
+ +
+
+
+
+

{% trans "Bądź na bieżąco" %}

+ +
+ + {% sponsor_page 'footer' %} + +
+
+
+ {% endblock %}