Add party management on track page.
[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                 <a href="artist?id=<% artist.id|html>"><% artist.name|html></a>
13         <%/foreach>
14         <%ifnull !track.remix>
15         (<% track.remix|html> by <%foreach track.remixArtists artist><%notfirst> &amp; <%/notfirst><a href="artist?id=<% artist.id|html>"><% artist.name|html></a><%/foreach>)
16         <%/if>
17 </h1>
18
19 <%ifnull !track.properties.release/name>
20         <%ifnull !track.properties.release/pouet/id>
21                 <div>Release: <a href="http://pouet.net/prod.php?which=<%track.properties.release/pouet/id|html>"><%track.properties.release/name|html></a></div>
22         <%else>
23                 <div>Release: <%track.properties.release/name|html></div>
24         <%/if>
25 <%/if>
26
27 <%foreach track.derivatives derivative>
28
29         <h2><a href="download?id=<%derivative.id|html>"><%derivative.properties.audio/codec.shortName|html></a></h2>
30
31         <div class="size"><%derivative.size|concise|html>B</div>
32
33         <%ifnull !derivative.properties.media/bitrate>
34                 <div class="bitrate"><%derivative.properties.media/bitrate|html> kbps</div>
35         <%/if>
36
37         <%ifnull !derivative.properties.media/length>
38                 <div class="length"><%derivative.properties.media/length|time></div>
39         <%/if>
40
41 <%foreachelse>
42         <p>This track does not have any files.</p>
43 <%/foreach>
44
45 <%/if>
46
47 <%include include/footer>