fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when published date is NaN, set to 0
[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
9b61283
..
830c08e
100755
(executable)
--- a/
wolnelektury/templates/catalogue/book_mini_box.html
+++ b/
wolnelektury/templates/catalogue/book_mini_box.html
@@
-3,17
+3,21
@@
<a href="{{ book.get_absolute_url }}">
{% if book.cover %}
<img src="
<a href="{{ book.get_absolute_url }}">
{% if book.cover %}
<img src="
- {% thumbnail book.cover "
216x288
" as thumb %}
+ {% thumbnail book.cover "
139x193
" as thumb %}
{{ thumb.url }}
{% empty %}
{{ book.cover.url }}
{% endthumbnail %}
" alt="Cover" />
{% endif %}
{{ thumb.url }}
{% empty %}
{{ book.cover.url }}
{% endthumbnail %}
" alt="Cover" />
{% endif %}
- {% for author in authors %}
- <div class="mono author">{{ author }}</div>
- {{ book.title }}
- {% endfor %}
+ <div class="desc">
+ <span class="mono author">
+ {% for name, url in related.tags.author %}
+ {{ name }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ </span>
+ <span class="title">{{ book.title }}</span>
+ </div>
</a>
</div>
</a>
</div>