fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't generate HTML files for books with no text.
[wolnelektury.git]
/
wolnelektury
/
templates
/
catalogue
/
book_short.html
diff --git
a/wolnelektury/templates/catalogue/book_short.html
b/wolnelektury/templates/catalogue/book_short.html
index
368126d
..
41d3212
100644
(file)
--- a/
wolnelektury/templates/catalogue/book_short.html
+++ b/
wolnelektury/templates/catalogue/book_short.html
@@
-9,7
+9,9
@@
{% endif %}
<div class="book-description">
<h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>
{% endif %}
<div class="book-description">
<h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>
- <p style="margin: 0">Na skróty: {{ formats|join:", "|safe }}</p>
+ {% if formats %}
+ <p style="margin: 0">Na skróty: {{ formats|join:", "|safe }}</p>
+ {% endif %}
<p style="margin: 0">Utwór w kategoriach: {{ tags|join:", "|safe }}</p>
</div>
</div>
<p style="margin: 0">Utwór w kategoriach: {{ tags|join:", "|safe }}</p>
</div>
</div>