X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Fadvfilter.html.sh;fp=templates%2Fadvfilter.html.sh;h=0000000000000000000000000000000000000000;hb=dfdfcfb7ac57a823e639a19d268436753385cbed;hp=3f8c6207bde7e153719e3a7a7bd5e8716bfd2abd;hpb=d716f2ce1fe64cf87f777490315bc51906001c72;p=serve0 diff --git a/templates/advfilter.html.sh b/templates/advfilter.html.sh deleted file mode 100755 index 3f8c620..0000000 --- a/templates/advfilter.html.sh +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 2014 - 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 . - -category_tabs(){ - for cat in "$@"; do - cat < - - - - -EOF - done -} - -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: - - -
- $(category_tabs $(list_categories) ) -
-
- EOF - 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 - -# vi:set filetype=html: