X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Flist.html.sh;h=144ad0e69f0a1d81620df98b2998a3d6afedda7e;hb=5b28c95408ac219fa5abf790eda7c937542d4e7d;hp=a03c4dac673332f0525b622e91491fdc224ade1f;hpb=37450b7423b778817c24521e60c6719335d62d26;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index a03c4da..144ad0e 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) -