X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/04bcff7bdb003dcd9740926bfc1243859b9defe4..9bc86f5a6542c5893ac94284da33162a7c7be2d6:/src/wolnelektury/templates/main_page.html?ds=inline diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html index d14e25a7d..386ebe620 100644 --- a/src/wolnelektury/templates/main_page.html +++ b/src/wolnelektury/templates/main_page.html @@ -1,127 +1,328 @@ -{% extends "base/base.html" %} -{% load latest_blog_posts from blog %} -{% load carousel from social_tags %} +{% extends "base.html" %} {% 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 %} +
+
+ +
+
+ Dorzuć się! +
+
+

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

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

Nowości

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

Bądź na bieżąco

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