From: David ‘Bombe’ Roden Date: Wed, 1 Aug 2012 05:03:16 +0000 (+0200) Subject: Use includes for displaying track information in non-admin mode. X-Git-Url: https://git.pterodactylus.net/?p=demoscenemusic.git;a=commitdiff_plain;h=eecca317b8dc18c7fe13fa3a86978621901be460 Use includes for displaying track information in non-admin mode. --- diff --git a/src/main/resources/templates/artist b/src/main/resources/templates/artist index e04ac03..9fc0a17 100644 --- a/src/main/resources/templates/artist +++ b/src/main/resources/templates/artist @@ -10,7 +10,7 @@ <%foreach artist.tracks track|sort> <%first><%/last> <%foreachelse>

This artist does not have any tracks.

diff --git a/src/main/resources/templates/include/derivative b/src/main/resources/templates/include/derivative new file mode 100644 index 0000000..f2ebcf3 --- /dev/null +++ b/src/main/resources/templates/include/derivative @@ -0,0 +1 @@ +<%ifnull derivative.properties.audio/codec><%derivative.properties.file/extension.toUpperCase><%else><%derivative.properties.audio/codec.shortName|html><%/if> \ No newline at end of file diff --git a/src/main/resources/templates/include/track b/src/main/resources/templates/include/track new file mode 100644 index 0000000..edff155 --- /dev/null +++ b/src/main/resources/templates/include/track @@ -0,0 +1 @@ +<%track.name|html><%ifnull !track.remix> (<%track.remix|html><%foreach track.remixArtists artist><%first> by <%/first><%notfirst> & <%/notfirst><%include include/artist><%/foreach>)<%/if><%foreach track.artists artist><%first> by <%/first><%notfirst> & <%/notfirst><%include include/artist><%/foreach><%foreach track.derivatives derivative><%first> (<%/first><%notfirst>, <%/notfirst><%include include/derivative><%last>)<%/last><%/foreach> \ No newline at end of file diff --git a/src/main/resources/templates/party b/src/main/resources/templates/party index 196d992..35dcd43 100644 --- a/src/main/resources/templates/party +++ b/src/main/resources/templates/party @@ -12,7 +12,7 @@ <%foreach party.releases track|sort> <%first><%/last> <%foreachelse>

This party does not have any releases.