[% pagetitle = "PLAYLIST" | string; noHomeLink = 1 %] [% PROCESS pageheader.html %] [% pwd_list = BLOCK %] [% "CURRENT_PLAYLIST" | string %][% "COLON" | string %] [% IF current_playlist %][% current_playlist_name %] [% IF current_playlist_modified %]([% "MODIFIED" | string %])[% END %][% END %] [% IF playlistname %][% playlistname %][% END %] [% IF myClientState || pageinfo %]([% IF pageinfo %][% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %][% ELSE; IF myClientState; myClientState.playlist.size; %] [% "SONGS" | string %][% END %][% END %])[% END %] [% END %] [% WRAPPER submenu %] [% IF pageinfo.totalpages > 1 %][% PROCESS pagebar %][% END %] [%- END -%] [% IF not playlist_items %]

[% "EMPTY" | string %]

[% ELSE %]

[% FOREACH item = playlist_items; PROCESS status_list.html; END; %]

[% END %] [% BLOCK editlink %] [% title | string %] [% END %]

[% IF cansave %] [% PROCESS editlink file='edit_playlist.html' title='SAVE' arguments='&saveCurrentPlaylist=1' %] | [% END %] [% PROCESS editlink file='status.m3u' title='DOWNLOAD' arguments='' %] | [% PROCESS editlink file='status.html' title='CLEAR' arguments='&p0=playlist&p1=clear' %]

[% PROCESS pagefooter.html %]