X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=4b1d0fe698f83e47b74366d6f328ebca38f94095;hb=5b28c95408ac219fa5abf790eda7c937542d4e7d;hp=b4f2d7d327628deccb631d85e7f7b19c7b7c0b53;hpb=268f33d7d6e4fceb0b2ee6cc24ef95b4b743372e;p=serve0 diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh index b4f2d7d..4b1d0fe 100755 --- a/templates/tagger.html.sh +++ b/templates/tagger.html.sh @@ -1,46 +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 +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: -