From 678e18b89d76204be5da198cb254e98ece63b6a6 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 20 Jul 2021 19:08:32 +1000 Subject: [PATCH] disable next button when we have no more int he list -- doesnt deal with when we exactly land on the last image, and it seems we have 1 too many in the first set of images (have 10 on select, but see 11 on page - after next button though its 10 on the page --- templates/files.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/files.html b/templates/files.html index 0a58f99..bfcf079 100644 --- a/templates/files.html +++ b/templates/files.html @@ -57,7 +57,11 @@
 {{how_many}} files  - + {% set nxt_disabled="" %} + {% if entry_data|length < how_many|int %} + {% set nxt_disabled="disabled" %} + {% endif %} + {% if "files_rbp" in request.url %}  {{how_many}} files  - +