X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=templates%2Flist.html.sh;h=e6552fdcd95e9aa7417a375a7254d1bafab86c0c;hb=dfdaf2aee35b9b1ae112df2828b6ab7fa380a7a8;hp=e54f3c25d60ef0ebe35e43211f8d2dd813dbc190;hpb=3e3a70ef3ea209edb6757b1da57254d94d11d053;p=serve0 diff --git a/templates/list.html.sh b/templates/list.html.sh index e54f3c2..e6552fd 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -16,6 +16,8 @@ # along with Serve0 If not, see . cat <Search @@ -27,68 +29,65 @@ cat < - Clear All - Advanced - Player - - - Page: - $(seq 1 $pagecount \ - | while read pn; do - plink="$(($pn * $pagesize - $pagesize + 1))" - printf '%s\n' "$([ $plink = $page ] && printf class=current)" "$page_link" "$plink" "$pn" - done - ) - + Clear - - Hide - - <<< - << - ■ - || / ▶ - >> - >>> - - Amp Off - Amp On - - $(for n in $(seq 0 5 100); do - printf ' ' "$([ "$volume" = "$n" ] && printf selected)" "$n" - done) - - Progress - + Advanced + $(. $_EXEC/templates/advfilter.html.sh) + + Preferences + $(. $_EXEC/templates/preferences.html.sh) + + {+} + + Hide + + Browse Folders + Player + + + + + - - $(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) Add Tags - Preferences - Browse Folders + ⧠Page: - $(seq 1 $pagecount \ - | while read pn; do - plink="$(($pn * $pagesize - $pagesize + 1))" - printf '%s\n' "$([ $plink = $page ] && printf class=current)" "$page_link" "$plink" "$pn" - done - ) + ${pages} - $(. $_EXEC/templates/preferences.html.sh) - $(. $_EXEC/templates/advfilter.html.sh) EOF # vi:set filetype=html: