[% IF song_count; pageHeaderInfo = BLOCK %] [% album_count %] [% "WITH" | string %] [% song_count %] [% stringBY %] [% artist_count %] [% IF albumDuration %]([% "LENGTH" | string %][% stringCOLON %] [% albumDuration %])[% END %] [% END; END %] [% pagetitle = browseby | string; noSpacer = 1 %] [% IF useAJAX %][% pageHeaderScripts = BLOCK %]
[% END %][% END %] [% IF NOT ajaxUpdate %][% PROCESS pageheader.html %][% END %]
[% IF artwork != 1 -%] [% IF hasPagebar %][% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %][% END %] [% END -%] [% IF warn -%]

[% PROCESS scanwarning %] [%- END %] [% IF hasPagebar -%][% PROCESS pagebar %][%- END %]

[%- IF artwork == 1 && (levelName == 'album' || levelName == 'age' || levelName = 'changed'); container = 'gallerycontainer'; ELSE; container = 'contentcontainer'; END; %] [%- WRAPPER $container %] [% IF levelName == 'track' && (album.id || age.id || changed.id) && NOT ajaxUpdate %] [% IF age.id; album = age; ELSIF changed.id; album = changed; END %]
[% # remove "All Songs" item and display links at the top IF browse_items.size > 1; songInfoPlayLinks = BLOCK; PROCESS songInfoPlayLinks item = browse_items.shift(); END;END; contributorRoles = {}; IF !album.compilation; FOREACH contributor IN album.contributors; FOREACH contributor IN contributor.contributorRoles; contributorRoles.${contributor} = 1; END; END; END; PROCESS songinfo_header.html itemobj = { id => coverArt || 0, album => album, contributorRoles => contributorRoles.keys, genres => album.genre, year => album.year }; %]
[% ELSIF coverArt AND tree != 1 -%]

[% PROCESS coverImg resize='1' %]

[% END -%] [% FOREACH item = browse_items -%] [%- IF useAJAX %][% itemid = "$item.itemobj.id"_"."_"$loop.index" %][% IF level %][% itemid = "$level"_"."_"$itemid" %][% END %][% END -%] [%- PROCESS browsedbitems_list.html -%] [%- IF useAJAX && NOT (artwork == 1 && (item.levelName == 'album' || item.levelName == 'age' || item.levelName == 'changed')) %]
[% END -%] [%- END %] [% END -%] [% IF useAJAX && (artwork == 1 && (item.levelName == 'album' || item.levelName == 'age' || item.levelName == 'changed')) %]
[% END %]
[% IF pageinfo.totalpages && pageinfo.totalpages > 1 && pageinfo.totalalphapages != 1 %][% PROCESS pagebar %][% END %]
[% IF NOT ajaxUpdate %] [% PROCESS pagefooter.html %] [% END %]