X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/019dfd7e87efcf03b08decb7af6552df3e3df215..f3e8dfa015744bd72796fdd8eff0d81f863cdc46:/src/wolnelektury/templates/main_page.html?ds=sidebyside
diff --git a/src/wolnelektury/templates/main_page.html b/src/wolnelektury/templates/main_page.html
index c3064127f..d68c2cc7f 100644
--- a/src/wolnelektury/templates/main_page.html
+++ b/src/wolnelektury/templates/main_page.html
@@ -25,9 +25,7 @@
{% for book in best %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
+ {{ book.mini_box }}
{% endfor %}
@@ -44,9 +42,7 @@
{% trans "Theme" %}: {{ theme }}
{% trans "Explore works with the same theme" %}
{% for book in theme_books %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
+ {{ book.mini_box }}
{% endfor %}
{% if theme_fragment %}
{% cache 3600 fragment_promo theme_fragment.pk %}
@@ -57,40 +53,6 @@
{% trans "See motifs catalog" %}
- {% comment %}
-
-
-
-
-
-
-
- {% endcomment %}
-
{% if collection %}
{% trans "Collections" %}
@@ -104,9 +66,7 @@
{% trans "Recent publications" %}
{% for book in last_published %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
+ {{ book.mini_box }}
{% endfor %}
{% trans "More recent publications" %}