]> git.sesse.net Git - ccbs/blob - html/templates/songs.tmpl
Lots of changes/fixes to the new translation stuff.
[ccbs] / html / templates / songs.tmpl
1 [%# vim:set filetype=html: %]
2
3 [% SET last_machine = '' %]
4
5 [% FOR s = songs %]
6 [% IF s.machinename != last_machine %]
7 [% IF last_machine != '' %]
8     </table>
9   </div>
10 [% END %]
11
12 [% SET last_machine = s.machinename %]
13   <h2>[% s.machinename %]</h2>
14
15   <div>
16     <p><a href="songratings.pl?machine=[% s. machine %]"><_>Foot ratings</_></a></p>
17   
18     <table class="scores">
19       <tr>
20         <th>Song</th>
21         <th>Artist</th>
22         <th>Average</th>
23         <th>Std.dev.</th>
24         <th>High score</th>
25       </tr>
26 [% END %]
27
28       <tr>
29         <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
30         <td>[% s.artist %]</td>
31         <td>[% s.avg_score %]</td>
32         <td>[% s.stddev_score %]</td>
33 [% IF s.high_score == '' %]
34         <td></td>
35 [% ELSE %]
36         <td>[% s.high_score %] <_>av</_> <a href="song.pl?id=[% s.high_score_player %]">[% s.high_score_nick %]</a></td>
37 [% END %]
38       </tr>
39 [% END %]
40     </table>
41   </div>