X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Flist.html.sh;h=e60f3b8b4d4ac9792426c19876841a774c68819d;hb=c59fd5a4946c4d13fc1692e4561878a9bb2b3e17;hp=a5096d3da65f23e8c582377da1c3afa2dace0262;hpb=47b905d14103c01625d16fe557e63e34317c6453;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index a5096d3..e60f3b8 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -16,50 +16,75 @@ # along with Serve0 If not, see . cat < -
+ + $(. $_EXEC/templates/advfilter.html.sh) + + + $(. $_EXEC/templates/preferences.html.sh) + + + + + + +
    - $(thumblist) +EOF + + thumblist + + pages="$( + seq 1 $(pagecount) \ + | while read pn; do + plink="$(($pn * $pagesize - $pagesize + 1))" + + case "$plink" in + ($(($page - $pagesize))) class=previous;; + ($page) class=current;; + ($(($page + $pagesize))) class=next;; + (*) class='';; + esac + + printf '%s\n' "$class" "$page_link" "$plink" "$pn" + done + )" + +cat < $(. $_EXEC/templates/tagger.html.sh) - $(. $_EXEC/templates/preferences.html.sh) - $(. $_EXEC/templates/advfilter.html.sh) EOF # vi:set filetype=html: