X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=f92bf0c61083904c41b3ec7eb4b1ba80eff66b89;hb=3f7337568cab959054f5c75081644fb04fc5c254;hp=b4f2d7d327628deccb631d85e7f7b19c7b7c0b53;hpb=268f33d7d6e4fceb0b2ee6cc24ef95b4b743372e;p=serve0 diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh index b4f2d7d..f92bf0c 100755 --- a/templates/tagger.html.sh +++ b/templates/tagger.html.sh @@ -1,46 +1,54 @@ -#!/bin/zsh +# Copyright 2014, 2015 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 +category_options(){ + cat="${1}:" + [ "$cat" = "none:" ] && cat='' -
- - << - $(($page + 1)) - >> -
- + printf %s "$taglist_set" \ + | sed -rn 's;^('"$cat"')([^:]+)$;;p' +} +category_box(){ + for cat in "$@"; do + cat < + + + +

+EOF + done +} - -LOCATIONend +EOF # vi:set filetype=html: -