X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0..5685b8ab601b5ccdecc44bb5d0b23b937f5c487f:/src/catalogue/templates/catalogue/related_books.html diff --git a/src/catalogue/templates/catalogue/related_books.html b/src/catalogue/templates/catalogue/related_books.html index 03d779342..74e680f59 100755 --- a/src/catalogue/templates/catalogue/related_books.html +++ b/src/catalogue/templates/catalogue/related_books.html @@ -1,29 +1,28 @@ {% spaceless %} -{% load catalogue_random_book from catalogue_tags %} -{% load picture_random_picture from picture_tags %} -{% load ssi_include from ssify %} -{% load cache %} + {% load catalogue_random_book from catalogue_tags %} + {% load picture_random_picture from picture_tags %} + {% load ssi_include from ssify %} + {% load cache %} -{% for pic in pics %} + {% for pic in pics %} {% ssi_include 'picture_mini' pk=pic.pk %} -{% endfor %} + {% endfor %} -{% for book in books %} + {% for book in books %} {% cache 86400 book_mini_box book.pk %} {% include 'catalogue/book_mini_box.html' %} {% endcache %} {#% ssi_include 'catalogue_book_mini' pk=book.pk %#} -{% endfor %} + {% endfor %} -{% if random %} + {% if random %} {% catalogue_random_book random_excluded_books as random_book_pk %} {% picture_random_picture random_excluded_pics unless=random_book_pk as random_pic_pk %} {{ random_book_pk.if }} - {% ssi_include 'catalogue_book_mini' pk=random_book_pk %} + {% ssi_include 'catalogue_book_mini' pk=random_book_pk %} {{ random_book_pk.endif }} {{ random_pic_pk.if }} - {% ssi_include 'picture_mini' pk=random_pic_pk %} + {% ssi_include 'picture_mini' pk=random_pic_pk %} {{ random_pic_pk.endif }} -{% endif %} - + {% endif %} {% endspaceless %} \ No newline at end of file