X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=4b1d0fe698f83e47b74366d6f328ebca38f94095;hb=5b28c95408ac219fa5abf790eda7c937542d4e7d;hp=28fb1b8424273ab16faa24a6ff9d27690a0b4060;hpb=cc3eaa233f51324cdb20b594b6751468ba78aa4f;p=serve0 diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh index 28fb1b8..4b1d0fe 100755 --- a/templates/tagger.html.sh +++ b/templates/tagger.html.sh @@ -1,47 +1,54 @@ -#!/bin/zsh +# Copyright 2014, 2015, 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 . -cat < - Add Tags - - Page: - << - $(($page + 1)) - >> - - +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 +} - - -LOCATIONend +EOF # vi:set filetype=html: -