]> git.sesse.net Git - ccbs/blob - html/templates/show-tournament.tmpl
Add headings to the score display.
[ccbs] / html / templates / show-tournament.tmpl
1 [%# vim:set filetype=html: %]
2 [% FOR r = rounds %]
3   <h2>Runde [% r.round %]</h2>
4
5 [% FOR p = r.parallels %]
6   <table>
7     <tr>
8 [% IF p.parallel == 0 %]
9       <th></th>
10 [% ELSE %]
11       <th>Gruppe [% p.parallel %]</th>
12 [% END %]
13 [% FOR s = p.songs %]
14       <th>[% s %]</th>
15 [% END %]
16     </tr>
17     
18 [% FOR pl = p.players %]
19     <tr>
20       <th>[% pl.nick %]</th>
21 [% FOR s = pl.songs %]
22       <td>
23         [% s.score %]
24 [% IF s.chosen %]
25         : [% s.title %]
26 [% END %]
27 </td>
28 [% END %]
29     </tr>
30 [% END %]
31   </table>
32 [% END %]
33   
34 [% END %]