X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fadvfilter.html.sh;h=3f8c6207bde7e153719e3a7a7bd5e8716bfd2abd;hb=5667597778145b23dc04aa65e1e9ea3ac0b7fd97;hp=80ec4c268bc3e66d98e6dc200db541a95db6512d;hpb=3328f743ac5b2dff350e9981e113b205047a7caa;p=serve0 diff --git a/templates/advfilter.html.sh b/templates/advfilter.html.sh index 80ec4c2..3f8c620 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,66 @@ # 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 + Most recent + +

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}) + +
-

- - +
EOF