fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using cache middleware instead of various caching micro-strategies,
[wolnelektury.git]
/
apps
/
catalogue
/
templates
/
catalogue
/
related_books.html
diff --git
a/apps/catalogue/templates/catalogue/related_books.html
b/apps/catalogue/templates/catalogue/related_books.html
index
219876e
..
48fb2ee
100755
(executable)
--- a/
apps/catalogue/templates/catalogue/related_books.html
+++ b/
apps/catalogue/templates/catalogue/related_books.html
@@
-1,10
+1,16
@@
-{% load book_mini from catalogue_tags %}
-
{% spaceless %}
{% spaceless %}
+{% load catalogue_random_book from catalogue_tags %}
+{% load ssi_include from ssify %}
+
{% for book in books %}
{% for book in books %}
- {% book_mini book %}
-{% endfor %}
-{% for book in random_related %}
- {% book_mini book %}
+ {% ssi_include 'catalogue_book_mini' pk=book.pk %}
{% endfor %}
{% endfor %}
+
+{% if random %}
+ {% catalogue_random_book random_excluded as random_pk %}
+ {{ random_pk.if }}
+ {% ssi_include 'catalogue_book_mini' pk=random_pk %}
+ {{ random_pk.endif }}
+{% endif %}
+
{% endspaceless %}
\ No newline at end of file
{% endspaceless %}
\ No newline at end of file