[%- IF ajaxRequest -%]

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

[%- ELSE -%]
[% PROCESS customheader.html %]
[% 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 %] [% PROCESS status_list.html %] [% END %] [% ELSE %]

[% "EMPTY" | string %]

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