From: Jan Szejko Date: Tue, 12 Jan 2016 14:09:10 +0000 (+0100) Subject: audiobooks: no prev/next buttons when only one part X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/50840b4a75a3ffc806c462b6b9fb4f05303523b3?ds=inline audiobooks: no prev/next buttons when only one part --- diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index a2b0a5c41..712609552 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -187,9 +187,13 @@
-« {% trans "previous" %} +{% if audiobooks|length > 1 %} + « {% trans "previous" %} +{% endif %} {% trans "Part" %} 1 / {{ audiobooks|length }} -{% trans "next" %} » +{% if audiobooks|length > 1 %} + {% trans "next" %} » +{% endif %}