From b9c0b14388ba471864efc23bba1c830844df2123 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 31 Jul 2012 07:20:20 +0200 Subject: [PATCH] Add include to render a complete artist. --- src/main/resources/templates/artist | 2 +- src/main/resources/templates/artists | 2 +- src/main/resources/templates/include/artist | 1 + src/main/resources/templates/track | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/templates/include/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> -- 2.7.4