1 # Copyright 2014 - 2016 Paul Hänsch
3 # This file is part of Serve0
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0 If not, see <http://www.gnu.org/licenses/>.
19 <form class="panel" id="search" style="display: block;" action="?" method="get" accept-charset="UTF-8">
20 <input type="text" name="s" value="$search" placeholder="Search">
22 <label for="o1" class="order">Order by:</label>
23 <select class="order" size="1" name="o" id="o1">
26 <option>Length</option>
28 <input type="submit" name="submit" value="Find">
30 <a class="panel clearsearch" href="?">Clear All</a>
31 <a class="panel" href="${info:+?p=list&${page_this}}${directory:+?p=tree&d=${directory}&${page_this}}#$(urlsafe $info)">Dismiss</a>
36 <a href="$video">Download</a>
38 <form action="?action=playctl" method="post">
39 <button type="submit" name="seek" value="-60"><<<</button>
40 <button type="submit" name="seek" value="-10"><<</button>
41 <button type="submit" name="ctl" value="stop">■</button>
42 <button type="submit" name="ctl" value="pause">|| / ▶</button>
43 <button type="submit" name="seek" value="+10">>></button>
44 <button type="submit" name="seek" value="+60">>>></button>
46 <button type="submit" name="amp" value="off">Amp Off</button>
47 <button type="submit" name="amp" value="on">Amp On</button>
49 $(for n in $(seq 0 5 100); do
50 printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
53 <!--button type="submit" name="osd" value="progression">Progress</button -->
56 <span class="info length">$(($length / 60)):$(($length % 60)) min</span>
57 <span class="info width" >Width: $width</span>
58 <span class="info height">Height: $height</span><br>
60 $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
61 ${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
63 <form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
64 <input type="hidden" name="length" value="$length">
65 <input type="hidden" name="width" value="$width">
66 <input type="hidden" name="height" value="$height">
69 for cat in $(list_categories); do
70 printf '<p class="newtag"><label class="category">%s:</label><select name="tag" size="12" multiple>' "${cat}"
72 [ "$catt" = "none:" ] && catt=''
74 printf %s "$taglist_set" |egrep '^'"$catt"'[^:]+$' |while read line; do
75 printf '<option %s value="%s">%s</option>' \
76 "$(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && printf selected)" \
79 printf '</select></p>'
83 <p class="newtag additional">
84 <label class="additional">Additional Tags (one per line):</label>
85 <textarea name="tags" rows="4"></textarea>
87 <p class="newtag description">
88 <label class="description">Description:</label>
89 <textarea name="description" rows="4">$description</textarea>
91 <input type="submit" value="Edit!">
92 <input type="submit" name="trash" value="Delete Video">
94 <a class="panel toggle" href="#foot">Hide</a>
99 <div class="panel footer" id="foot">
100 <a class="panel toggle" href="#tagger">Edit Tags</a>
107 printf '<span class="progress"><span style="width: %s%%;">%s</span></span>\n' $n $n
110 # vi:set filetype=html: