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

index a1608f3..2eb47c4 100644 (file)
@@ -36,7 +36,7 @@
                <input type="hidden" name="group" value="<%group.id|html>"/>
 
                <div>
-                       <a href="admin.edit-group?id=<%group.id|html>"><%group.name|html></a>
+                       <%include include/admin.group>
                </div>
                <button type="submit" name="delete-group" value="true">Delete Group</button>
 
index 65ed1eb..6d52017 100644 (file)
@@ -1 +1 @@
-<a href="admin.edit-artist?id=<%artist.id|html>"><% artist.name|html></a><%foreach artist.groups group|sort><%first> / <%/first><%notfirst> ^ <%/notfirst><a href="admin.edit-group?id=<%group.id|html>"><%group.name|html></a><%/foreach>
\ No newline at end of file
+<a href="admin.edit-artist?id=<%artist.id|html>"><% artist.name|html></a><%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 (file)
index 0000000..9deb55a
--- /dev/null
@@ -0,0 +1 @@
+<a href="admin.edit-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