X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=4b1d0fe698f83e47b74366d6f328ebca38f94095;hb=94b22476b017682875212d6c569b221056dd7bb7;hp=2fd18f55dc3529f4e3755685a13a0249c2d49a2c;hpb=3a030bfc7933228ab4405dbb706bd63edbf7bc31;p=serve0 diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh index 2fd18f5..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: - << - $(($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: -