share/http/index.html: output valid xhtml, even with an empty playlist. Show

a message in the playlist area if the playlist is empty.
parent 07c5cedc
...@@ -86,11 +86,10 @@ ...@@ -86,11 +86,10 @@
</div> </div>
<div class="sectitle">Move Item</div> <div class="sectitle">Move Item</div>
<div class="section"> <div class="section">
<form method="get" action=""> <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" /> 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> </form>
</div>
</div> </div>
<div class="sectitle">VLC Playlist</div> <div class="sectitle">VLC Playlist</div>
...@@ -115,6 +114,7 @@ ...@@ -115,6 +114,7 @@
<tr> <tr>
<td> <td>
<table> <table>
<vlc id="rpn" param1="0"/>
<vlc id="foreach" param1="pl" param2="playlist" /> <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" />"> <tr class="<vlc id="if" param1="pl.index 2 % 0 =" />ligne1<vlc id="else" />ligne2<vlc id="end" />">
<td> <td>
...@@ -129,7 +129,15 @@ ...@@ -129,7 +129,15 @@
<vlc id="end" /> <vlc id="end" />
</td> </td>
</tr> </tr>
<vlc id="rpn" param1="1 +"/>
<vlc id="end" /> <vlc id="end" />
<vlc id="if" param1="0 ="/>
<tr class="ligne1">
<td>
empty playlist
</td>
</tr>
<vlc id="end"/>
</table> </table>
</td> </td>
</tr> </tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment