X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=4b1d0fe698f83e47b74366d6f328ebca38f94095;hb=4e9318751e491128e3cd922c2ad6bc00f3051ee0;hp=10e657c020d57ccd543bb0b1c4b3315bc6a6fc0e;hpb=3328f743ac5b2dff350e9981e113b205047a7caa;p=serve0
diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh
index 10e657c..4b1d0fe 100755
--- a/templates/tagger.html.sh
+++ b/templates/tagger.html.sh
@@ -1,4 +1,4 @@
-# Copyright 2014, 2015 Paul Hänsch
+# Copyright 2014, 2015, 2016 Paul Hänsch
#
# This file is part of Serve0
#
@@ -15,31 +15,39 @@
# You should have received a copy of the GNU Affero General Public License
# along with Serve0 If not, see .
+category_options(){
+ cat="${1}:"
+ [ "$cat" = "none:" ] && cat=''
+
+ printf %s "$taglist_set" \
+ | sed -rn 's;^('"$cat"')([^:]+)$;;p'
+}
+
+category_box(){
+ for cat in "$@"; do
+ cat <
+
+
+
+
+EOF
+ done
+}
+
cat <
- Hide
-
+