From: David ‘Bombe’ Roden Date: Tue, 31 Jul 2012 19:06:45 +0000 (+0200) Subject: Add include file for group display. X-Git-Url: https://git.pterodactylus.net/?p=demoscenemusic.git;a=commitdiff_plain;h=e761d9355fda5eda55abd6f99b4b576c12083e81 Add include file for group display. --- diff --git a/src/main/resources/templates/admin.edit-artist b/src/main/resources/templates/admin.edit-artist index a1608f3..2eb47c4 100644 --- a/src/main/resources/templates/admin.edit-artist +++ b/src/main/resources/templates/admin.edit-artist @@ -36,7 +36,7 @@
- <%group.name|html> + <%include include/admin.group>
diff --git a/src/main/resources/templates/include/admin.artist b/src/main/resources/templates/include/admin.artist index 65ed1eb..6d52017 100644 --- a/src/main/resources/templates/include/admin.artist +++ b/src/main/resources/templates/include/admin.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/admin.group><%/foreach> \ No newline at end of file diff --git a/src/main/resources/templates/include/admin.group b/src/main/resources/templates/include/admin.group new file mode 100644 index 0000000..9deb55a --- /dev/null +++ b/src/main/resources/templates/include/admin.group @@ -0,0 +1 @@ +<%ifnull group.shortName><%group.name|html><%else><%group.shortName|html><%/if> \ No newline at end of file