fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stats view fix
[wolnelektury.git]
/
src
/
catalogue
/
templates
/
catalogue
/
collection_box.html
diff --git
a/src/catalogue/templates/catalogue/collection_box.html
b/src/catalogue/templates/catalogue/collection_box.html
index
ac59fbe
..
c32122f
100644
(file)
--- a/
src/catalogue/templates/catalogue/collection_box.html
+++ b/
src/catalogue/templates/catalogue/collection_box.html
@@
-1,21
+1,16
@@
{% spaceless %}
{% load i18n %}
{% spaceless %}
{% load i18n %}
- {% load ssi_include from ssify %}
- {% load cache %}
<div class="collection-box white-box">
<div class="collection-box white-box">
- <h2><a href="{{
obj.get_absolute_url }}">{% trans "Collection" %}: {{ obj
}}</a></h2>
- {% if
obj
.description %}
- {{
obj
.description|safe|truncatewords_html:40 }}
+ <h2><a href="{{
collection.get_absolute_url }}">{% trans "Collection" %}: {{ collection
}}</a></h2>
+ {% if
collection
.description %}
+ {{
collection
.description|safe|truncatewords_html:40 }}
{% endif %}
{% endif %}
- {% for book in obj.get_books|slice:":5" %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
- {#% ssi_include 'catalogue_book_mini' pk=book.pk %#}
+ {% for book in collection.get_books|slice:":5" %}
+ {{ book.mini_box }}
{% endfor %}
{% endfor %}
- {% with
obj
.get_books.count|add:-5 as more %}
+ {% with
collection
.get_books.count|add:-5 as more %}
{% if more > 0 %}
{% if more > 0 %}
- <a href="{{
obj
.get_absolute_url }}">
+ <a href="{{
collection
.get_absolute_url }}">
{% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %}
</a>
{% endif %}
{% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %}
</a>
{% endif %}