]> git.sesse.net Git - ccbs/blob - html/templates/show-tournament.tmpl
Make sure players are created before adding them to the rankings. Update test SQL.
[ccbs] / html / templates / show-tournament.tmpl
1 [%# vim:set filetype=html: %]
2   <h2>Generelle fakta</h2>
3
4   <ul>
5     <li>Sesong: [% tournament.seasonname %]</li>
6     <li>Land: [% tournament.countryname %]</li>
7     <li>Sted: [% tournament.location %]</li>
8     <li>Dato: [% tournament.date %]</li>
9     <li>Maskin: [% tournament.machinename %]</li>
10     <li>Scoresystem: [% tournament.scoringsystemname %]</li>
11   </ul>
12
13 [% FOR r = rounds %]
14   <h2>Runde [% r.round %]</h2>
15
16 [% FOR p = r.parallels %]
17   <table class="scores">
18     <tr>
19 [% IF p.parallel == 0 %]
20       <th></th>
21 [% ELSE %]
22       <th>Gruppe [% p.parallel %]</th>
23 [% END %]
24 [% FOR s = p.songs %]
25       <th>[% s %]</th>
26 [% END %]
27     </tr>
28     
29 [% FOR pl = p.players %]
30     <tr>
31       <th>[% pl.nick %]</th>
32 [% FOR s = pl.songs %]
33       <td>
34         [% s.score %]
35 [% IF s.chosen %]
36         : [% s.title %]
37 [% END %]
38 </td>
39 [% END %]
40     </tr>
41 [% END %]
42   </table>
43 [% END %]
44   
45 [% END %]