-<div class="panel" id="videoview">
- <a href="${info:+?p=list&${page_this}}${info:-?p=tree&d=${directory}&${page_this}}" class="panel">Dismiss</a>
- <h1>$info</h1>
-
- <div class="video">
- <a href="$video">Full</a>
- <video controls>
- <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
- </video>
- </div>
-
- <div class="tabcontainer">
- <input type="radio" class="tabhandle" name="viewmode" value="view" id="viewmeta" checked>
- <div class="videoinfo tabcontent">
- <label class="meta edit" for="editmeta">Edit</label>
-
- <span class="info length">$(($length / 60)):$(($length % 60)) min</span>
- <span class="info width" >Width: $width</span>
- <span class="info height">Height: $height</span><br>
-
- <label class="tags">Tags:</label>
- $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
- ${description:+<span class="info description">$(echo -E "$description" |_wiki)</span>}
- </div>
- </div>
-
- <div class="tabcontainer">
- <input type="radio" class="tabhandle" name="viewmode" value="edit" id="editmeta">
- <form class="videoinfo tabcontent" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
- <label class="meta cancel" for="viewmeta">Cancel Edit</label>
-
- <input type="hidden" name="length" value="$length">
- <input type="hidden" name="width" value="$width">
- <input type="hidden" name="height" value="$height">
-
- <span class="info length">$(($length / 60)):$(($length % 60)) min</span>
- <span class="info width" >Width: $width</span>
- <span class="info height">Height: $height</span>
-
- <span class="label tags">Tags:</span>
- <select class="edit tags" name="tag" size="16" multiple>
- $(echo "$taglist" |while read line; do
- echo "<option $(egrep -q "(^|.*\|)$line(\|.*|$)" "$meta" && echo -n selected)>$line</option>"
- done)
- </select>
-
- <label class="moretags">Additional Tags (one per line):</label>
- <textarea class="edit moretags" name="tags" rows="4"></textarea>
-
- <label class="description">Description:</label>
- <textarea class="edit description" name="description" rows="4">$description</textarea>
-
- <input type="submit" value="Submit">
- <input type="submit" name="trash" value="Delete Video">
- <!-- input type="submit" name="cancel" value="Cancel" -->
- </form>
- </div>
+<input type=radio name=topmenu id=btn_preferences><label for=btn_preferences>Preferences</label>
+ $(. $_EXEC/templates/preferences.html.sh)
+
+<input type=radio name=topmenu id=btn_morelinks><label for=btn_morelinks>{+}</label>
+<div class="panel switchable top" id="morelinks">
+ <a class="panel toggle" href="#">Hide</a>
+
+ <a class="panel listview" href="?p=list">Index view</a>
+ <a class="panel treeview" href="?p=browse">Browse Folders</a>
+</div>
+
+
+<div id="videoview">
+ <h1>$info</h1>
+
+ <a href="$video">Download</a>
+ <video autoplay controls>
+ <source src="$video" type='video/mp4; codecs="avc1.4D401E, mp3"'>"
+ </video>
+
+ <span class="info length">$(printf "%d:%02d min" $(($length / 60)) $(($length % 60)) )</span>
+ <span class="info width" >Width: $width</span>
+ <span class="info height">Height: $height</span><br>
+
+ $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span> :g')
+ ${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}