[%# Page songinfo.html %] [% pagetitle = BLOCK %] [%- playermodel | string %] : [% "SONG_INFO" | string -%] [%- END -%] [%- pageicon = 'MUSIC' -%] [%- PROCESS pageheader.html -%]

| [% "SONG_INFO" | string %] [% "FOR" | string %] [% itemobj.title %]

[% IF itemobj.coverArt('cover', 1) %] [% END %]

[% PROCESS browsecontrols_abbr itemobj = itemobj attributes = attributes odd = odd mixerlinks = mixerlinks %]

[% "TITLE" | string %][% "COLON" | string %] | [% itemobj.title %]
[% FOREACH role = itemobj.contributorRoles.sort %] [% contributors = itemobj.contributorsOfType(role) %] [% IF contributors %]
[% contributorsHTML = [] %]
[% role | upper | string; "COLON" | string %] | [% FOREACH contributor = contributors %] [% contributorHTMLFrag = "$contributor.name" %] [% contributorsHTML.push(contributorHTMLFrag) %] [% END %] [% contributorsHTML.join(', ') %]
[% END %] [% END %] [% IF itemobj.album %]
[% "ALBUM" | string %][% "COLON" | string %] | [% itemobj.album.title %]
[% END %] [% IF itemobj.genres %][% genresHTML = [] %]
[% END %]
[% "GENRE" | string %][% "COLON" | string %] | [% FOREACH genre = itemobj.genres %] [% genreHTMLFrag = "$genre.name" %] [% genresHTML.push(genreHTMLFrag) %] [% END %] [% genresHTML.join(', ') %]

[% IF itemobj.tracknum %]
[% "TRACK" | string %][% "COLON" | string %] | [% itemobj.tracknum %]
[% END %] [% IF itemobj.duration %]
[% "LENGTH" | string %][% "COLON" | string %] | [% itemobj.duration %]
[% END %] [% IF itemobj.year %]
[% "YEAR" | string %][% "COLON" | string %] | [% itemobj.year| html %]
[% END %] [% IF itemobj.replay_gain.defined %]
[% "REPLAYGAIN" | string; "COLON" | string %] | [% itemobj.replay_gain | format('%2.2f') | html %] dB
[% END %] [% IF itemobj.album.replay_gain.defined %]
[% "ALBUMREPLAYGAIN" | string; "COLON" | string %] | [% itemobj.album.replay_gain | format('%2.2f') | html %] dB
[% END %] [% IF comment %]
[% "COMMENT" | string %][% "COLON" | string %] | [% comment %]
[% END %] [% IF itemobj.lyrics %]
[% "LYRICS" | string %][% "COLON" | string %] | [% itemobj.lyrics | html_line_break | html_para %]
[% END %] [% IF filelength %]
[% "FILELENGTH" | string %][% "COLON" | string %] | [% filelength %] [% "BYTES" | string %]
[% END %] [% IF itemobj.prettyBitRate %]
[% "BITRATE" | string %][% "COLON" | string %] | [% itemobj.prettyBitRate %]
[% END %][% IF itemobj.samplerate %]
[% "SAMPLERATE" | string; "COLON" | string %] | [% itemobj.prettySampleRate | html %]
[% END %] [% IF itemobj.tagversion %]
[% "TAGVERSION" | string %][% "COLON" | string %] | [% itemobj.tagversion %]
[% END %]

[%# /Page songinfo.html %] [% PROCESS pagefooter.html %]