]> git.sesse.net Git - vlc/commitdiff
share/http/index.html: output valid xhtml, even with an empty playlist. Show
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 30 May 2004 10:52:02 +0000 (10:52 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sun, 30 May 2004 10:52:02 +0000 (10:52 +0000)
a message in the playlist area if the playlist is empty.

share/http/index.html

index c4132843ec5a03478d68d08b98035bbaef7477e0..f454fc9b93a0a96cc1eee3487ba2b446a8b64bf3 100644 (file)
     </div>
 
     <div class="sectitle">Move Item</div>
-     <div class="section">
-      <form method="get" action="">
-       Move the item number <input type="text" name="psz_pos" size="5" /> to <input type="text" name="psz_newpos" size="5" /> <input type="submit" name="control" value="move" />
-      </form>
-     </div>
+    <div class="section">
+     <form method="get" action="">
+      Move the item number <input type="text" name="psz_pos" size="5" /> to <input type="text" name="psz_newpos" size="5" /> <input type="submit" name="control" value="move" />
+     </form>
     </div>
 
     <div class="sectitle">VLC Playlist</div>
         <tr>
           <td>
             <table>
+              <vlc id="rpn" param1="0"/>
               <vlc id="foreach" param1="pl" param2="playlist" />
               <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
                 <td>
                   <vlc id="end" />
                 </td>
               </tr>
+              <vlc id="rpn" param1="1 +"/>
               <vlc id="end" />
+              <vlc id="if" param1="0 ="/>
+               <tr class="ligne1">
+                <td>
+                 empty playlist
+                </td>
+               </tr>
+              <vlc id="end"/>
             </table>
           </td>
         </tr>