fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f24386
)
audiobooks: no prev/next buttons when only one part
author
Jan Szejko
<j-sz@o2.pl>
Tue, 12 Jan 2016 14:09:10 +0000
(15:09 +0100)
committer
Jan Szejko
<j-sz@o2.pl>
Tue, 12 Jan 2016 14:09:10 +0000
(15:09 +0100)
src/catalogue/templates/catalogue/book_short.html
patch
|
blob
|
history
diff --git
a/src/catalogue/templates/catalogue/book_short.html
b/src/catalogue/templates/catalogue/book_short.html
index
a2b0a5c
..
7126095
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_short.html
+++ b/
src/catalogue/templates/catalogue/book_short.html
@@
-187,9
+187,13
@@
</div>
</div>
<div>
</div>
</div>
<div>
-<a class="play-prev">« {% trans "previous" %}</a>
+{% if audiobooks|length > 1 %}
+ <a class="play-prev">« {% trans "previous" %}</a>
+{% endif %}
{% trans "Part" %} <span class="number">1</span> / {{ audiobooks|length }}
{% trans "Part" %} <span class="number">1</span> / {{ audiobooks|length }}
-<a class="play-next">{% trans "next" %} »</a>
+{% if audiobooks|length > 1 %}
+ <a class="play-next">{% trans "next" %} »</a>
+{% endif %}
</div>
</div>
</div>
</div>