Use short name of audio codec as file header, link to download.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 23:36:23 +0000 (01:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 23:36:23 +0000 (01:36 +0200)
src/main/resources/templates/track

index ef8b2b3..a97a2ee 100644 (file)
 
 <%foreach track.derivatives derivative>
 
-       <h2><%ifnull !derivative.properties.file/original-name><%derivative.properties.file/original-name|html><%else>Unnamed File<%/if></h2>
+       <h2><a href="download?id=<%derivative.id|html>"><%derivative.properties.audio/codec.shortName|html></a></h2>
 
        <div class="size"><%derivative.size|concise|html>B</div>
 
-       <%ifnull !derivative.properties.audio/codec>
-               <div class="audio-codec"><%derivative.properties.audio/codec.name|html></div>
-       <%/if>
-
        <%ifnull !derivative.properties.media/bitrate>
                <div class="bitrate"><%derivative.properties.media/bitrate|html> kbps</div>
        <%/if>