Add include for groups (non-admin mode).
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 19:07:49 +0000 (21:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 19:07:49 +0000 (21:07 +0200)
src/main/resources/templates/include/artist
src/main/resources/templates/include/group [new file with mode: 0644]

index ecf2290..4e2368b 100644 (file)
@@ -1 +1 @@
-<a href="artist?id=<%artist.id|html>"><% artist.name|html></a><%foreach artist.groups group|sort><%first> / <%/first><%notfirst> ^ <%/notfirst><a href="group?id=<%group.id|html>"><%group.name|html></a><%/foreach>
\ No newline at end of file
+<a href="artist?id=<%artist.id|html>"><% artist.name|html></a><%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 (file)
index 0000000..3f7de13
--- /dev/null
@@ -0,0 +1 @@
+<a href="group?id=<%group.id|html>"><%ifnull group.shortName><%group.name|html><%else><span title="<%group.name|html>"><%group.shortName|html></span><%/if></a>
\ No newline at end of file