[%- IF ajaxRequest -%]

    	[% PROCESS ajaxRequest.txt page = 'playlist' light = 1 %]

[%- ELSE -%]
[% IF playercount == '0' %] [% ELSIF not playlist_items %]

[% "EMPTY" | string %]
[% ELSE %] [% IF pageinfo.totalpages > 1 %][% PROCESS pagebar addSummary = 1 %][% END %]
[% IF playercount == '0' %]

[% "NO_PLAYER_DETAILS" | string %]

[% ELSE %] [% IF playlist_items %]

[% FOREACH item = playlist_items %] [% listClass = 'odd' %][% IF item.currentsong; listClass = 'current'; END %]
1. [% PROCESS status_list.html %]
[% END %]

[% ELSE %]

[% "EMPTY" | string %]

[% END %] [% END %]
[% IF pageinfo.totalpages > 1 %][% PROCESS pagebar addSummary = 1 %][% END %]
[% END %]
[% END %]