[%- pageicon = 'BROWSE_PLAYLISTS' -%] [%- pagetitle = 'FAVORITES' | string -%] [%- pwd_list = BLOCK -%]/ [% "FAVORITES" | string %] [% END -%] [%- PROCESS pageheader.html -%] [% warning %] [% WRAPPER contentcontainer %] [% odd = 1 %] [% FOREACH fav = titles %] [% text = IF fav ; fav ; ELSE ;"EMPTY" | string ; END; %] [% BLOCK favcontrols %] [% WRAPPER moveuplink noTarget=1 %] href="favorites_list.html?p0=favorites&p1=move&p2=[% loop.index %]&p3=%2D1&player=[% player | uri %]" [% END %] [% WRAPPER movedownlink noTarget=1 %] href="favorites_list.html?p0=favorites&p1=move&p2=[% loop.index %]&p3=%2B1&player=[% player | uri %]" [% END %] [% WRAPPER removelink noTarget=1 %] href="favorites_list.html?p0=favorites&p1=delete&p2=[% loop.index %]&player=[% player | uri %]" [% END %] [% WRAPPER playlink %] href="[% webroot %][% statusroot %]?command=playlist&subcommand=loadtracks&favorite=[% faves.$fav | uri %]&player=[% player | uri %]" [% END %] [% END %] [% WRAPPER contentitem controls = 'favcontrols' %] [% loop.count _ '. ' _ text %] [% END %] [% odd = (not odd) %] [% END %] [% END %] [% PROCESS pagefooter.html %]