From: David ‘Bombe’ Roden Date: Tue, 31 Jul 2012 19:07:49 +0000 (+0200) Subject: Add include for groups (non-admin mode). X-Git-Url: https://git.pterodactylus.net/?p=demoscenemusic.git;a=commitdiff_plain;h=1786a6988f6fbc589457dbdae1a2f8463688d819 Add include for groups (non-admin mode). --- diff --git a/src/main/resources/templates/include/artist b/src/main/resources/templates/include/artist index ecf2290..4e2368b 100644 --- a/src/main/resources/templates/include/artist +++ b/src/main/resources/templates/include/artist @@ -1 +1 @@ -<% artist.name|html><%foreach artist.groups group|sort><%first> / <%/first><%notfirst> ^ <%/notfirst><%group.name|html><%/foreach> \ No newline at end of file +<% artist.name|html><%foreach artist.groups group|sort><%first> / <%/first><%notfirst> ^ <%/notfirst><%include include/group><%/foreach> \ No newline at end of file diff --git a/src/main/resources/templates/include/group b/src/main/resources/templates/include/group new file mode 100644 index 0000000..3f7de13 --- /dev/null +++ b/src/main/resources/templates/include/group @@ -0,0 +1 @@ +<%ifnull group.shortName><%group.name|html><%else><%group.shortName|html><%/if> \ No newline at end of file