X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=templates%2Ftagger.html.sh;h=f92bf0c61083904c41b3ec7eb4b1ba80eff66b89;hb=3f7337568cab959054f5c75081644fb04fc5c254;hp=10e657c020d57ccd543bb0b1c4b3315bc6a6fc0e;hpb=3328f743ac5b2dff350e9981e113b205047a7caa;p=serve0 diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh index 10e657c..f92bf0c 100755 --- a/templates/tagger.html.sh +++ b/templates/tagger.html.sh @@ -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 -
+

Add selectetd tags to selected videos.

-

- - -

- $(echo "$taglist" |sed -rn 's;^([^:]+):.*$;\1;p' |sort -u |while read cat; do echo " -

- - - -

" - done) + $(category_box $(list_categories))

+ + Hide
EOF