]> git.plutz.net Git - serve0/blob - templates/view.html.sh
initial commit
[serve0] / templates / view.html.sh
1 #!/bin/zsh
2
3 cat <<viewEND
4   <div class="panel" id="videoview">
5     <span style="float:right;"><a href="#" onclick="javascript:hide_block('videoview');" class="panel">Dismiss</a></span>
6     <div class="video">
7       <a href="$video">Full</a> <!-- a href="$reenc">Mobile</a --><br>
8       <!--iframe src="$video" width="100%" height="400px"-->
9       <video controls>
10         <!-- source src="$reenc" type='video/webm; codecs="vp8.0, mp3"' -->
11         <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
12       </video><!--/iframe-->
13     </div>
14   
15     <div class="videoinfo" id="viewmeta">
16       <b>$info</b><a class="panel" href="#" onclick="javascript:hide_inline('viewmeta');show_inline('editmeta')">Edit</a><br>
17       <span class="coord">$(($length / 60)):$(($length % 60)) min</span>
18       <span class="coord">Width: $width</span><span class="coord">Height: $height</span><br>
19       <br><br>Tags:<span class="tag">$(sed 's,|$,,;s,|,</span> <span class="tag">,g' <<<"$tags")</span>
20       <br><br>$(_wiki <<<"$description")
21     </div>
22   
23     <div class="videoinfo" id="editmeta" style="display: none;">
24       <form action="meta.cgi?$info" method="post" accept-charset="UTF-8">
25         <input type="hidden" name="f" value="$filter"> <input type="hidden" name="s" value="$search"> <input type="hidden" name="p" value="$page">
26         <input type="hidden" name="length" value="$length"> <input type="hidden" name="width" value="$width">
27         <input type="hidden" name="height" value="$height">
28         <b>$info</b><a class="panel" href="#" onclick="javascript:hide_inline('editmeta');show_inline('viewmeta')">Cancel</a><br>
29         <span class="coord">$(($length / 60)):$(($length % 60)) min</span>
30         <span class="coord">Width: $width</span><span class="coord">Height: $height</span><br><br>
31   
32         <div>
33           Tags:<br>
34           <select name="tag" size="16" multiple>
35             $(echo "$taglist" |while read line; do
36               echo "<option $(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && echo -n selected)>$line</option>"
37             done)
38           </select><br>
39         </div><div>
40           Additional Tags (one per line):<br>
41           <textarea name="tags" rows="16" style="width: 99%"></textarea><br><br>
42         </div>
43         Description:<br>
44         <textarea name="description" rows="4" style="width: 99%">$description</textarea><br>
45         <input type="submit" value="Submit">
46         <input type="submit" name="trash" value="Delete Video">
47         <!-- input type="submit" name="cancel" value="Cancel" -->
48       </form>
49     </div>
50   </div>
51 viewEND
52
53 # vi:set filetype=html:
54