From 50840b4a75a3ffc806c462b6b9fb4f05303523b3 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 12 Jan 2016 15:09:10 +0100 Subject: [PATCH] audiobooks: no prev/next buttons when only one part --- src/catalogue/templates/catalogue/book_short.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 %}
-- 2.20.1