[%- FILTER null %]
[% BLOCK trackstatlistitem %]
[% PROCESS trackstatlistitem65 %]
[% END %]
[% BLOCK trackstatartistinfo %]
[% UNLESS noby %][% "BY" | string %] [% END %]
[%- FILTER null %]
[% contributorsHTML = [] %]
[% FOREACH contributorTuple IN itemobj.artistsWithAttributes %]
[% contributor = contributorTuple.artist %]
[% attrs = contributorTuple.attributes | html %]
[% target = notarget ? '' : 'target="browser"' %]
[% contrib = contributor.name | html %]
[% contribid = contributor.id %]
[% IF currentstatisticitems.artist %]
[% contributorHTMLFrag = "$contrib" %]
[% ELSE %]
[% contributorHTMLFrag = "$contrib" %]
[% END %]
[% contributorsHTML.push(contributorHTMLFrag) %]
[% END %]
[% END -%]
[% contributorsHTML.join(', ') %]
[% END %]
[% BLOCK trackstattrackinfo %]
[% IF item.currentsong %]
[% END %]
[% IF item.item || !item.defined('level') %]
[% item.text | html %]
[% ELSIF item.songtitle %]
[% item.songtitle | html %]
[% ELSE %]
[% item.text | html %]
[% END %]
[% IF item.includeArtist && item.itemobj.artist && item.itemobj.artist != item.noArtist %]
[% PROCESS trackstatartistinfo itemobj = item.itemobj %]
[% END %]
[% IF item.includeAlbum && item.itemobj.album.title && item.itemobj.album.title != item.noAlbum %][% "FROM" | string %]
[% IF currentstatisticitems.album %]
[% ELSE %]
[% END %]
[% item.itemobj.album.title | html %][% END %]
[% IF item.currentsong %]
<--
[% END %]
[% END %]
[% BLOCK trackstatlistitem65 %]
[% IF item.listtype == 'track' %]
[% PROCESS trackstattrackinfo %]
[% ELSIF item.listtype == 'album' %]
[% IF currentstatisticitems.album %]
[% item.itemobj.album.title | html %]
[%- IF currentstatisticitems.artist %]
[%- IF item.artist.name && item.artist.name != item.noArtist %] [% "BY" | string %] [% item.artist.name %]
[% END -%]
[% ELSE %]
[%- IF item.artist.name && item.artist.name != item.noArtist %] [% "BY" | string %] [% item.artist.name %]
[% END -%]
[% END %]
[% ELSE %]
[% item.itemobj.album.title | html %]
[% END %]
[% ELSIF item.listtype == 'artist' %]
[% IF currentstatisticitems.artist %]
[% item.itemobj.artist.name | html %]
[% ELSE %]
[% item.itemobj.artist.name | html %]
[% END %]
[% ELSIF item.listtype == 'genre' %]
[% IF currentstatisticitems.genre %]
[% item.itemobj.genre.name | html %]
[% ELSE %]
[% item.itemobj.genre.name | html %]
[% END %]
[% ELSIF item.listtype == 'year' %]
[% IF currentstatisticitems.year %]
[% item.itemobj.year | html %]
[% ELSE %]
[% item.itemobj.year | html %]
[% END %]
[% ELSIF item.listtype == 'playlist' %]
[% IF currentstatisticitems.playlist %]
[% item.itemobj.playlist.title | html %]
[% ELSE %]
[% item.itemobj.playlist.title | html %]
[% END %]
[% END %]
[% END %]
[% END -%]