]> git.plutz.net Git - serve0/blobdiff - templates/playctl.html.sh
basics for indexed browsing
[serve0] / templates / playctl.html.sh
index d530131c80557f447b320bcbbf735cf6946db729..9152db4e4f0f637d9819c2d61c616ecb4dcc2e05 100755 (executable)
@@ -29,11 +29,12 @@ cat <<EOF
   </select>
   <!-- input type="submit" name="submit" value="Find" -->
 
-  <a class="panel" href="${info:+?p=list&amp;${page_this}}${directory:+?p=tree&amp;d=${directory}&amp;${page_this}}#$(urlsafe $info)">Dismiss</a>
+  <a class="panel" href="${info:+?p=list&amp;${page_this}}${directory:+?p=browse&amp;d=${directory}&amp;${page_this}}#$(urlsafe $info)">Dismiss</a>
 </form>
 
 <input type=radio name=topmenu id=btn_playctl><label for=btn_playctl>Audio</label>
 <form class="panel switchable top playctl" id="advctl" action="?action=playctl" method="post">
+  <input type="hidden" name="referrer" value="$(attribsafe "${REQUEST_URI}")">
   <fieldset class="volume">
     <button type="submit" name="amp" value="off">Amp Off</button>
     <button type="submit" name="amp" value="on">Amp On</button>
@@ -54,7 +55,7 @@ cat <<EOF
   <a class="panel toggle" href="#">Hide</a>
 
   <a class="panel listview" href="?p=list">Index view</a>
-  <a class="panel treeview" href="?p=tree">Browse Folders</a>
+  <a class="panel treeview" href="?p=browse">Browse Folders</a>
 </div>
 
 
@@ -63,6 +64,7 @@ cat <<EOF
   <a href="$video">Download</a>
 
   <form action="?action=playctl" method="post" class="playctl">
+    <input type="hidden" name="referrer" value="$(attribsafe "${REQUEST_URI}")">
     <fieldset class="playback">
       <button type="submit" name="seek" value="-60">&lt;&lt;&lt;</button>
       <button type="submit" name="seek" value="-10">&lt;&lt;</button>
@@ -87,6 +89,7 @@ cat <<EOF
 </div>
 
 <form class="panel switchable bottom" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
+  <input type="hidden" name="referrer" value="$(attribsafe "${REQUEST_URI}")">
   <input type="hidden" name="length" value="$length">
   <input type="hidden" name="width" value="$width">
   <input type="hidden" name="height" value="$height">