Add page to show tracks by an artist.
[demoscenemusic.git] / src / main / resources / templates / artist
diff --git a/src/main/resources/templates/artist b/src/main/resources/templates/artist
new file mode 100644 (file)
index 0000000..655c4d8
--- /dev/null
@@ -0,0 +1,21 @@
+<%ifnull artist>
+<%include include/header title=="Unknown Artist">
+<p>Unknown artist ID.</p>
+<%else>
+<%include include/header title=artist.name>
+
+<h1><% artist.name|html></h1>
+
+<h2>Tracks by <% artist.name|html></h2>
+
+<%foreach tracks track|sort>
+<%first><ul><%/first>
+<li><a href="track?id=<% track.id|html>"><% track.name|html></a></li>
+<%last></ul><%/last>
+<%foreachelse>
+<p>This artist does not have any tracks.</p>
+<%/foreach>
+
+<%/if>
+
+<%include include/footer>
\ No newline at end of file