X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Flist.html.sh;h=ed41b3ac08da1ec08d72148fba4ea71c292c55bf;hb=5667597778145b23dc04aa65e1e9ea3ac0b7fd97;hp=4f860ec136de2a955a1f6f895acd1145af8317b6;hpb=563bd9812b0eb73ae4e49de012e0f67ed836faaf;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index 4f860ec..ed41b3a 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,72 +16,78 @@ # 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) + -