Add page that lists all releases of a party.
[demoscenemusic.git] / src / main / resources / templates / party
diff --git a/src/main/resources/templates/party b/src/main/resources/templates/party
new file mode 100644 (file)
index 0000000..426dbd3
--- /dev/null
@@ -0,0 +1,23 @@
+<%ifnull party>
+<%include include/header title=="Unknown Party">
+<p>Unknown party ID.</p>
+<%else>
+<%include include/header title=party.name>
+
+<h1><%party.name|html></h1>
+
+<!-- TODO: show properties -->
+
+<h2>Relasese</h2>
+
+<%foreach party.releases track|sort>
+<%first><ul><%/first>
+<li><a href="track?id=<%track.id|html>"><%track.name|html></a> by <%foreach track.artists artist><%first> by <%/first><%notfirst> &amp; <%/notfirst><%include include/artist><%/foreach></li>
+<%last></ul><%/last>
+<%foreachelse>
+<p>This party does not have any releases.</p>
+<%/foreach>
+
+<%/if>
+
+<%include include/footer>
\ No newline at end of file