Shape text using Pango and HarfBuzz; gives us nice ligatures and exotic scripts.
[ccbs] / html / templates / songratings.tmpl
1 [%# vim:set filetype=html: %]
2
3   <div>
4     <table class="scores">
5       <tr>
6         <th colspan="2"></th>
7 [% IF show_challenge %] 
8         <th colspan="5">Single</th>
9         <th colspan="4">Double</th>
10 [% ELSE %]      
11         <th colspan="4">Single</th>
12         <th colspan="3">Double</th>
13 [% END %]       
14       </tr>
15       <tr>
16         <th>Song</th>
17         <th>Artist</th>
18         <th>B</th>
19         <th>S</th>
20         <th>D</th>
21         <th>E</th>
22 [% IF show_challenge %] 
23         <th>C</th>
24 [% END %]       
25         <th>S</th>
26         <th>D</th>
27         <th>E</th>
28 [% IF show_challenge %] 
29         <th>C</th>
30 [% END %]       
31       </tr>
32 [% FOR s = songs %]
33       <tr>
34         <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
35         <td>[% s.artist %]</td>
36         <td>[% s.single_beginner %]</td>
37         <td>[% s.single_standard %]</td>
38         <td>[% s.single_difficult %]</td>
39         <td>[% s.single_expert %]</td>
40 [% IF show_challenge %] 
41         <td>[% s.single_challenge %]</td>
42 [% END %]
43         <td>[% s.double_standard %]</td>
44         <td>[% s.double_difficult %]</td>
45         <td>[% s.double_expert %]</td>
46 [% IF show_challenge %] 
47         <td>[% s.double_challenge %]</td>
48 [% END %]
49       </tr>
50 [% END %]
51     </table>
52   </div>