X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ffilter.html.sh;fp=templates%2Ffilter.html.sh;h=368591e54f29d578aeb70f1aef4b2cf3401ebc61;hb=fbbdc301af283f01aa39c3fed65c2ad190dcf112;hp=0ba32bbabcb148bd0eb6c4b97f0be4d9ab13aff2;hpb=317f5beec0ec8090b560cd555044162ab8706c66;p=serve0 diff --git a/templates/filter.html.sh b/templates/filter.html.sh index 0ba32bb..368591e 100755 --- a/templates/filter.html.sh +++ b/templates/filter.html.sh @@ -34,23 +34,46 @@ 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)))" + 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 none; echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u} \ +
+ + + +
+ $( echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u \ |while read cat; do echo "
- +
" @@ -63,9 +86,9 @@ cat <