Show derivatives for tracks on artist and party pages.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 10:51:30 +0000 (12:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 10:51:30 +0000 (12:51 +0200)
src/main/resources/templates/artist
src/main/resources/templates/party

index 34b24a8..e14770f 100644 (file)
@@ -10,7 +10,7 @@
 
 <%foreach artist.tracks track|sort>
 <%first><ul><%/first>
-<li><a href="track?id=<% track.id|html>"><% track.name|html></a><%foreach track.artists trackArtist|remove value=artist><%first> (together with <%/first><%notfirst>,<%last> and<%/last> <%/notfirst><%include include/artist artist=trackArtist><%last>)<%/last><%/foreach></li>
+<li><a href="track?id=<%track.id|html>"><%track.name|html></a><%foreach track.artists trackArtist|remove value=artist><%first> (together with <%/first><%notfirst>,<%last> and<%/last> <%/notfirst><%include include/artist artist=trackArtist><%last>)<%/last><%/foreach><%foreach track.derivatives derivative><%first> (<%/first><%notfirst>, <%/notfirst><%derivative.properties.audio/codec.shortName|html><%last>)<%/last><%/foreach></li>
 <%last></ul><%/last>
 <%foreachelse>
 <p>This artist does not have any tracks.</p>
index e3f9e50..196d992 100644 (file)
@@ -12,7 +12,7 @@
 
 <%foreach party.releases track|sort>
 <%first><ul><%/first>
-<li><a href="track?id=<%track.id|html>"><%track.name|html></a><%foreach track.artists artist><%first> by <%/first><%notfirst> &amp; <%/notfirst><%include include/artist><%/foreach></li>
+<li><a href="track?id=<%track.id|html>"><%track.name|html></a><%foreach track.artists artist><%first> by <%/first><%notfirst> &amp; <%/notfirst><%include include/artist><%/foreach><%foreach track.derivatives derivative><%first> (<%/first><%notfirst>, <%/notfirst><%derivative.properties.audio/codec.shortName|html><%last>)<%/last><%/foreach></li>
 <%last></ul><%/last>
 <%foreachelse>
 <p>This party does not have any releases.</p>