X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ffilter.html.sh;fp=templates%2Ffilter.html.sh;h=86d5b2b16bb79fbd6add2e5428a1f1cbc4eae29c;hb=9541d33307f68dbefb979e3a070a844f2be91d19;hp=368591e54f29d578aeb70f1aef4b2cf3401ebc61;hpb=91b7ecbc9eff99427974cebdd96ad0bef1c76929;p=serve0 diff --git a/templates/filter.html.sh b/templates/filter.html.sh index 368591e..86d5b2b 100755 --- a/templates/filter.html.sh +++ b/templates/filter.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014 Paul Hänsch +# Copyright 2014,2015 Paul Hänsch # # This file is part of Serve0 # @@ -34,7 +34,7 @@ cat <Up to 10 filter boxes will appear as you start selecting tags. You can select multiple tags in each box by holding down the Ctrl-key. Click the "Filter!" button when you are ready.

$(for n in {0..9}; do - filter="$(echo -E "$filters" |cut -d^ -f$(($n+1)))" + filter="$(printf '%s^' "$filters" |cut -d^ -f$(($n+1)))" fneg="${filter%%[a-zA-Z]*}" filter="${filter#!}" fcat="${filter%%:*}"