]> git.plutz.net Git - serve0/blobdiff - templates/tagger.html.sh
indexing stubs
[serve0] / templates / tagger.html.sh
diff --git a/templates/tagger.html.sh b/templates/tagger.html.sh
deleted file mode 100755 (executable)
index 4b1d0fe..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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 <http://www.gnu.org/licenses/>. 
-
-category_options(){
-  cat="${1}:"
-  [ "$cat" = "none:" ] && cat=''
-
-  printf %s "$taglist_set" \
-  | sed -rn 's;^('"$cat"')([^:]+)$;<option value="\1\2">\2</option>;p'
-}
-
-category_box(){
-  for cat in "$@"; do
-  cat <<EOF
-  <fieldset class="newtag">
-    <label class="category">${cat}:</label>
-    <input type="hidden" name="category" value="$cat">
-    <select name="ctag" size="12" multiple>
-      $(category_options "$cat")
-    </select>
-  </fieldset>
-EOF
-  done
-}
-
-cat <<EOF
-  <div class="panel switchable bottom" id="tagger">
-    <p class="help">Add selectetd tags to selected videos.</p>
-    $(category_box $(list_categories))
-    <fieldset class="newtag additional">
-      <label class="additional">Additional Tags (one per line):</label>
-      <textarea name="tags" rows="2"></textarea>
-    </fieldset>
-    <input type="submit" value="Add Tags!">
-
-    <a class="panel toggle" href="#foot">Hide</a>
-  </div>
-EOF
-
-# vi:set filetype=html: