If there’s no codec, use the extension.
[demoscenemusic.git] / src / main / resources / templates / track
index aecf4b5..d0e8bc1 100644 (file)
@@ -30,7 +30,7 @@
 
 <%foreach track.derivatives derivative>
 
-       <h2><a href="download?id=<%derivative.id|html>"><%derivative.properties.audio/codec.shortName|html></a></h2>
+       <h2><a href="download?id=<%derivative.id|html>"><%ifnull derivative.properties.audio/codec><%derivative.properties.file/extension.toUpperCase><%else><%derivative.properties.audio/codec.shortName|html><%/if></a></h2>
 
        <div class="size"><%derivative.size|concise|html>B</div>