From: David ‘Bombe’ Roden Date: Tue, 31 Jul 2012 05:20:20 +0000 (+0200) Subject: Add include to render a complete artist. X-Git-Url: https://git.pterodactylus.net/?p=demoscenemusic.git;a=commitdiff_plain;h=b9c0b14388ba471864efc23bba1c830844df2123 Add include to render a complete artist. --- diff --git a/src/main/resources/templates/artist b/src/main/resources/templates/artist index 9429468..a6efaac 100644 --- a/src/main/resources/templates/artist +++ b/src/main/resources/templates/artist @@ -4,7 +4,7 @@ <%else> <%include include/header title=artist.name> -

<% artist.name|html>

+

<%include include/artist>

Tracks by <% artist.name|html>

diff --git a/src/main/resources/templates/artists b/src/main/resources/templates/artists index 6746152..a5e2147 100644 --- a/src/main/resources/templates/artists +++ b/src/main/resources/templates/artists @@ -4,7 +4,7 @@ <%foreach artists artist|sort> <%first><%/last> <%foreachelse>

There are no artists.

diff --git a/src/main/resources/templates/include/artist b/src/main/resources/templates/include/artist new file mode 100644 index 0000000..ecf2290 --- /dev/null +++ b/src/main/resources/templates/include/artist @@ -0,0 +1 @@ +<% artist.name|html><%foreach artist.groups group|sort><%first> / <%/first><%notfirst> ^ <%/notfirst><%group.name|html><%/foreach> \ No newline at end of file diff --git a/src/main/resources/templates/track b/src/main/resources/templates/track index 4b1519f..aecf4b5 100644 --- a/src/main/resources/templates/track +++ b/src/main/resources/templates/track @@ -9,10 +9,10 @@ by <%foreach track.artists artist> <%notfirst>&<%/notfirst> - <% artist.name|html> + <%include include/artist> <%/foreach> <%ifnull !track.remix> - (<% track.remix|html> by <%foreach track.remixArtists artist><%notfirst> & <%/notfirst><% artist.name|html><%/foreach>) + (<% track.remix|html><%foreach track.remixArtists artist><%first> by <%/first><%notfirst> & <%/notfirst><%include include/artist><%/foreach>) <%/if>