X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Flist.html.sh;h=28ce6c503e3bc12a3befc9150ecd8ffaa8dbbcd8;hb=9554fea689ec1519a572888aae9dc37ae140cd57;hp=dd35173d415f9d7b0c92dfd479ce1cabdb571b77;hpb=c107b42c61b01b9deef58e8d40ac642fc3d94d08;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index dd35173..28ce6c5 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014, 2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -16,50 +16,79 @@ # 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) -