X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Flist.html.sh;h=e60f3b8b4d4ac9792426c19876841a774c68819d;hb=77d8d8341f42adc7dedd221ba409482186e43a68;hp=21dfd1189a976296d0b7ad170e893577e94018b5;hpb=cf7e00db16a1ff076df29fc9d4531ea0b19c6243;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index 21dfd11..e60f3b8 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 - 2016 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0 # @@ -15,22 +15,6 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0 If not, see . -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 < @@ -58,21 +42,34 @@ cat < Hide - Browse Folders + Browse Folders Player
- - - - +
    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)