X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/04bcff7bdb003dcd9740926bfc1243859b9defe4..HEAD:/src/wolnelektury/templates/main_page.html diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index d14e25a7d..3ae4bd3e3 100644 --- a/src/wolnelektury/templates/main_page.html +++ b/src/wolnelektury/templates/main_page.html @@ -1,127 +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 "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 %} -
- {% trans "See motifs catalog" %} -
+{% block global-content %} +
- {% if collection %} -
-

{% trans "Collections" %}

- {{ collection.box }} - {% trans "See collections catalog" %} + {% if widget %} +

{{ widget.description }}

+
+
{% endif %} -
-

{% trans "Recent publications" %}

- {% for book in last_published %} - {{ book.mini_box }} - {% endfor %} - {% trans "More recent publications" %} -
+ {% if recommended_collection %} +
+
+ +
+ {% for book in recommended_collection.get_books %} + {% include 'catalogue/book_box.html' %} + {% endfor %} +
+ +
-
+
+ {% endif %} -
-

{% trans "News" %}

- {% cache 1800 latest_blog_posts %} - {% latest_blog_posts %} - {% endcache %} +
+
+ +
+
+ {% 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ę!" %} +
+
+ +
-
-

{% trans "Utilities" %}

- - +
+
+ {% for ambassador in ambassadors %} +
+ {% thumbnail ambassador.photo '100x100' crop="center" as ambphoto %} + {{ ambassador.name }} + {% endthumbnail %} +

{{ ambassador.name }}

+

+ {{ ambassador.text }} +

+
+ {% endfor %} +
+ +
+ {% preview_ad_homepage %} +
+
-
-

{% 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 %}