fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cover images; sorl>=10; hook sponsors off sorl
[wolnelektury.git]
/
wolnelektury
/
templates
/
catalogue
/
book_mini_box.html
diff --git
a/wolnelektury/templates/catalogue/book_mini_box.html
b/wolnelektury/templates/catalogue/book_mini_box.html
index
4ef82e1
..
43ca2a5
100755
(executable)
--- a/
wolnelektury/templates/catalogue/book_mini_box.html
+++ b/
wolnelektury/templates/catalogue/book_mini_box.html
@@
-1,8
+1,14
@@
{% load i18n %}
{% load i18n %}
+{% load thumbnail %}
<div class="book-mini-box">
<a href="{{ book.get_absolute_url }}">
<div class="book-mini-box">
<a href="{{ book.get_absolute_url }}">
- <img src="{{ STATIC_URL }}img/cover.png"
- alt="{% trans "Book cover" %}" />
+ <img src="
+ {% thumbnail book.cover "216x288" as thumb %}
+ {{ thumb.url }}
+ {% empty %}
+ {{ book.cover.url }}
+ {% endthumbnail %}
+ " alt="{% trans "Book cover" %}" />
{% for author in authors %}
<div class="mono author">{{ author }}</div>
{{ book.title }}
{% for author in authors %}
<div class="mono author">{{ author }}</div>
{{ book.title }}