X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fadvfilter.html.sh;h=c4f14ccadf6739aafa2f03804667394b03042297;hb=3f7337568cab959054f5c75081644fb04fc5c254;hp=80ec4c268bc3e66d98e6dc200db541a95db6512d;hpb=3328f743ac5b2dff350e9981e113b205047a7caa;p=serve0 diff --git a/templates/advfilter.html.sh b/templates/advfilter.html.sh index 80ec4c2..c4f14cc 100755 --- a/templates/advfilter.html.sh +++ b/templates/advfilter.html.sh @@ -1,4 +1,4 @@ -# Copyright 2014,2015 Paul Hänsch +# Copyright 2014 - 2016 Paul Hänsch # # This file is part of Serve0 # @@ -15,94 +15,67 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0 If not, see . -cat < - - - + + - - - Clear All - Hide -
- -

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.

+ +EOF + done +} - $(for n in {0..9}; do +filterbox(){ + for n in "$@"; do filter="$(printf '%s^' "$filters" |cut -d^ -f$(($n+1)))" fneg="${filter%%[a-zA-Z]*}" filter="${filter#!}" fcat="${filter%%:*}" [ "$fcat" = "$filter" ] && fcat=none - + debug "fneg: $fneg fcat: $fcat filter: $filter" cat <<-EOF - +
of the items selected here: - + -
-
- - - -
- $( echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u \ - |while read cat; do echo " -
- - - -
- " - done) -
+
+ $(category_tabs $(list_categories) ) +
EOF - done) + done +} + +cat < + + Hide + +

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.

+ $(filterbox {0..9})

- + Most recent EOF