fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detail page getting shape
[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
43ca2a5
..
58abaa6
100755
(executable)
--- a/
wolnelektury/templates/catalogue/book_mini_box.html
+++ b/
wolnelektury/templates/catalogue/book_mini_box.html
@@
-1,17
+1,20
@@
-{% load i18n %}
{% load thumbnail %}
<div class="book-mini-box">
<a href="{{ book.get_absolute_url }}">
{% load thumbnail %}
<div class="book-mini-box">
<a href="{{ book.get_absolute_url }}">
- <img src="
- {% thumbnail book.cover "216x288" as thumb %}
- {{ thumb.url }}
- {% empty %}
- {{ book.cover.url }}
- {% endthumbnail %}
- " alt="{% trans "Book cover" %}" />
+ {% if book.cover %}
+ <img src="
+ {% thumbnail book.cover "216x288" as thumb %}
+ {{ thumb.url }}
+ {% empty %}
+ {{ book.cover.url }}
+ {% endthumbnail %}
+ " alt="Cover" />
+ {% endif %}
{% for author in authors %}
{% for author in authors %}
- <div class="mono author">{{ author }}</div>
- {{ book.title }}
+ <div class="desc">
+ <span class="mono author">{{ author }}</span>
+ <span class="title">{{ book.title }}</span>
+ </div>
{% endfor %}
</a>
</div>
{% endfor %}
</a>
</div>