Add page that lists all releases of a party.
[demoscenemusic.git] / src / main / resources / templates / track
1 <%ifnull track>
2 <%include include/header title=="Unknown Track">
3 <p>Unknown track ID.</p>
4 <%else>
5 <%include include/header title=track.name>
6
7 <h1>
8         <% track.name|html>
9         by
10         <%foreach track.artists artist>
11                 <%notfirst>&amp;<%/notfirst>
12                 <%include include/artist>
13         <%/foreach>
14         <%ifnull !track.remix>
15         (<% track.remix|html><%foreach track.remixArtists artist><%first> by <%/first><%notfirst> &amp; <%/notfirst><%include include/artist><%/foreach>)
16         <%/if>
17 </h1>
18
19 <%foreach track.parties party>
20         <div>Released at <a href="party?id=<%party.id|html>"><%party.name|html></a>.</div>
21 <%/foreach>
22
23 <%ifnull !track.properties.release/name>
24         <%ifnull !track.properties.release/pouet/id>
25                 <div>Release: <a href="http://pouet.net/prod.php?which=<%track.properties.release/pouet/id|html>"><%track.properties.release/name|html></a></div>
26         <%else>
27                 <div>Release: <%track.properties.release/name|html></div>
28         <%/if>
29 <%/if>
30
31 <%foreach track.derivatives derivative>
32
33         <h2><a href="download?id=<%derivative.id|html>"><%derivative.properties.audio/codec.shortName|html></a></h2>
34
35         <div class="size"><%derivative.size|concise|html>B</div>
36
37         <%ifnull !derivative.properties.media/bitrate>
38                 <div class="bitrate"><%derivative.properties.media/bitrate|html> kbps</div>
39         <%/if>
40
41         <%ifnull !derivative.properties.media/length>
42                 <div class="length"><%derivative.properties.media/length|time></div>
43         <%/if>
44
45 <%foreachelse>
46         <p>This track does not have any files.</p>
47 <%/foreach>
48
49 <%/if>
50
51 <%include include/footer>