X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b86123575745cb5b1ee72018c08e34a187ec25a1..6dd6758582da7f138885dc1eee41c8f9031da410:/src/wolnelektury/templates/main_page.html diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index f47e1d227..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 %}