fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch cover.
[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
38855d9
..
ec79ca6
100644
(file)
--- a/
src/catalogue/templates/catalogue/collection_box.html
+++ b/
src/catalogue/templates/catalogue/collection_box.html
@@
-1,7
+1,8
@@
{% spaceless %}
{% load i18n %}
{% spaceless %}
{% load i18n %}
+ {% load thumbnail %}
<div class="collection-box white-box">
<div class="collection-box white-box">
- <h2><a href="{{ collection.get_absolute_url }}">{
% trans "Collection" %}: {
{ collection }}</a></h2>
+ <h2><a href="{{ collection.get_absolute_url }}">{{ collection }}</a></h2>
<div class="description">
{% if collection.description %}
{{ collection.description|safe|truncatewords_html:40 }}
<div class="description">
{% if collection.description %}
{{ collection.description|safe|truncatewords_html:40 }}
@@
-10,7
+11,7
@@
<div class="covers">
{% for book in collection.get_books|slice:":6" %}
<a href="{{ book.get_absolute_url }}">
<div class="covers">
{% for book in collection.get_books|slice:":6" %}
<a href="{{ book.get_absolute_url }}">
- <img src="{
{ book.cover_thumb.url }
}" alt="{{ book.pretty_title }}" title="{{ book.pretty_title }}">
+ <img src="{
% thumbnail book.cover_clean '139x193' as th %}{{ th.url }}{% endthumbnail %
}" alt="{{ book.pretty_title }}" title="{{ book.pretty_title }}">
</a>
{% endfor %}
</div>
</a>
{% endfor %}
</div>