[%- pagetitle = browseby | string %] [%- pageicon = icons.$browseby %] [% IF levelName == 'album' || levelName == 'age' || levelName == 'playlisttrack'; titleRight = BLOCK %]
[% END; END %] [%- extJsScripts = BLOCK -%]
[%- END -%] [%- PROCESS pageheader.html dontscroll=1 useSpecialExt="-browse" -%]
[% IF !(artwork == 1 && (levelName == 'album' || levelName == 'age' || levelName == 'changed')) -%] [% 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 %] [%- IF song_count; infoTab = BLOCK -%]
[% album_count %] [% "WITH" | string %] [% song_count %] [% stringBY %] [% artist_count %].
[%- END; END -%] [%- WRAPPER $container %] [% IF levelName == 'track' && (album.id || age.id || changed.id) %] [% 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; item = browse_items.shift(); item.isFavorite = isFavorite; item.url => itemUrl; item.text => album.name; PROCESS songInfoPlayLinks; END; END; contributorRoles = {}; IF album.compilation; USE Prefs; includeArtist = !Prefs.preferences('server').get('titleFormat').${Prefs.preferences('server').get('titleFormatWeb')}.search('ARTIST'); ELSE; FOREACH contributor IN album.contributors; FOREACH contributor IN contributor.contributorRoles; contributorRoles.${contributor} = 1; END; END; END; PROCESS songinfo_header.html albumFirst = 1 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 -%] [%- PROCESS browsedbitems_list.html item.includeAlbum = !album.id.defined item.includeArtist = includeArtist -%] [%- END %] [% END -%] [% PROCESS pagefooter.html %]