From: paul Date: Wed, 13 Apr 2016 12:10:57 +0000 (+0000) Subject: increase number of quicklinks, make player panel available in tree view X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=ca0cde88cb003b41e62c2e08da8dd26b7b3b583e;p=serve0 increase number of quicklinks, make player panel available in tree view svn path=/trunk/; revision=117 --- diff --git a/pages/list.sh b/pages/list.sh index 063bf40..fc4ff66 100755 --- a/pages/list.sh +++ b/pages/list.sh @@ -42,13 +42,13 @@ fi quicklinks(){ output='' tac ${_DATA}/meta/recent \ - | while [ "$(printf %s "$output" |wc -l)" -lt 10 ] && read line; do + | while [ "$(printf %s "$output" |wc -l)" -lt 30 ] && read line; do printf %s "$output" |grep -qF "$line" || output="$output$line$LF" done printf %s "$output" |while read line; do linef=$(printf %s "$line" |sed -r 's;^.*(\?|&)f=([^&]+)&?.*$;\2;g') lineo=$(printf %s "$line" |sed -r 's;^.*(\?|&)o=([^&]+)&?.*$;\2;g') - printf %s "by ${lineo}: $(present_filter "$linef")" + printf 'by %s: %s' "$line" "${lineo}" "$(present_filter "$linef")" done } diff --git a/static/common.css b/static/common.css old mode 100755 new mode 100644 index a995fd6..96f15be --- a/static/common.css +++ b/static/common.css @@ -247,12 +247,20 @@ div.panel { margin-left: 1em; } -#advfilter .quicklinks {max-width: 100%;} -#advfilter .quicklinks * { - display: block; +#advfilter .quicklinks {width: 100%;} +#advfilter .quicklinks :first-child {width: 100%;} +#advfilter .quicklinks input { display: none; } +#advfilter .quicklinks a { + display: none; word-wrap: break-word; + margin-left: 10%; margin-bottom: .75em; + margin-top: -1.5em; } +#advfilter .quicklinks:hover input, +#advfilter .quicklinks:hover a {display: block;} +#advfilter .quicklinks input:checked, +#advfilter .quicklinks input:checked + a { display: none;} /* == Thumblist == */ diff --git a/templates/list.html.sh b/templates/list.html.sh index e54f3c2..2e49dd5 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -42,27 +42,7 @@ cat < -
- Hide -
- - - - - - -
- - -
- $(for n in $(seq 0 5 100); do - printf '' "$([ "$volume" = "$n" ] && printf selected)" "$n" - done) -
- -
-
- + $(. $_EXEC/templates/playpanel.html.sh)
    diff --git a/templates/playpanel.html.sh b/templates/playpanel.html.sh new file mode 100755 index 0000000..f3a9f15 --- /dev/null +++ b/templates/playpanel.html.sh @@ -0,0 +1,41 @@ +# Copyright 2016 Paul Hänsch +# +# This file is part of Serve0 +# +# Serve0 is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Serve0 is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Serve0 If not, see . + +cat < + Hide + + + + + + + +
    + + +
    + $(for n in $(seq 0 5 100); do + printf '' "$([ "$volume" = "$n" ] && printf selected)" "$n" + done) +
    + + + +EOF + +# vi:set filetype=html: diff --git a/templates/tree.html.sh b/templates/tree.html.sh index 9ddffbe..1b2a38a 100755 --- a/templates/tree.html.sh +++ b/templates/tree.html.sh @@ -21,8 +21,11 @@ cat < Clear All + Player + $(. $_EXEC/templates/playpanel.html.sh) +
      $(filelist)