<master>
<property name="page_title">@page_title@</property>
<property name="title">@title@</property>
<property name="context">@context@</property>

<h3>Information for playlist @name@ <a href=playlist-edit?playlist_id=@playlist_id@>(edit)</a></h3>
Name: <b>@name@</b>
<br>
Score required to remove song:<b>  @remove_threshold@</b>

<if @songs@ ge 1>
<br>
<a href="../m3u/@playlist_id@/@name@.m3u">listen to playlist</a>
</if>

<hr>
<b>MP3s associated with @name@:</b>
<if @playlist_mp3s:rowcount@ eq 0>
<p>
 <i>There are no mp3s associated with this playlist.</i> 
    <if @new_mp3@ not nil>
     <a href=playlist-item-add-2?playlist_id=@playlist_id@&insert_after_id=-1&mp3_id=@new_mp3@>(insert mp3 here)</a><p>
    </if>
</if>

<else>
<table>
<tr align=left>
   <th>Score</th>
   <th>Title</th>
   <th>&nbsp;</th>
  </tr>

  <multiple name=playlist_mp3s>
   <tr bgcolor=#FOFOFO>
    <td>
     <if @playlist_mp3s.active_p@ eq "f">
	<font color=red>
     </if>
	@playlist_mp3s.total@
    </td>
    <td>
     <if @playlist_mp3s.active_p@ eq "f">
	<font color=gray>
	<i>@playlist_mp3s.title@ </i> </font>
     </if>
     <else>
	@playlist_mp3s.title@
     </else>
    </td>
    <td>
	(	
	<a href="playlist-item-remove?mp3_id=@playlist_mp3s.mp3_id@&playlist_id=@playlist_id@">remove</a>
	 <if @playlist_mp3s.sort_key@ ne @highest_sortkey_in_list@>
	  | <a href="swap?playlist_id=@playlist_id@&mp3_id=@playlist_mp3s.mp3_id@">swap with next</a>
         </if>
	  | <a href="../mp3s/@playlist_mp3s.mp3_id@/@playlist_mp3s.title@.mp3">listen</a>
)
    </td>

   </tr>
  </multiple>
 </table>
</else>
 <form action=file-search>
 <b>Add an MP3 to this playlist:</b>
  <input type=hidden name=playlist_id value=@playlist_id@>	
  <input type=text name=search_string>
  <input type=submit value=Search>
 </form>