]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Add a box for adding people.
[ccbs] / html / templates / show-tournament.tmpl
index b17b39b99b2d2b804a2330252ac4e71fdf145e8c..733b1cfc8e64d37c8566fd6f7220f5b0f456d757 100644 (file)
@@ -1,13 +1,46 @@
 [%# vim:set filetype=html: %]
+  <h2>Generelle fakta</h2>
+
+  <ul>
+    <li>Sesong: [% tournament.seasonname %]</li>
+    <li>Land: [% tournament.countryname %]</li>
+    <li>Sted: [% tournament.location %]</li>
+    <li>Dato: [% tournament.date %]</li>
+    <li>Maskin: [% tournament.machinename %]</li>
+    <li>Scoresystem: [% tournament.scoringsystemname %]</li>
+  </ul>
+
+  <h2>Rankingliste</h2>
+
+  <ul>
+[% FOR r = rankings %]
+[% IF r.points == -1 %]
+    <li>[% r.ranking %]. plass: [% r.nick %]</li>
+[% ELSE %]
+    <li>[% r.ranking %]. plass: [% r.nick %], med [% r.points %] poeng.</li>
+[% END %]
+[% END %]
+  </ul>
+
 [% FOR r = rounds %]
   <h2>Runde [% r.round %]</h2>
 
 [% FOR p = r.parallels %]
-[% IF p.parallel != 0 %]
-  <h3>Gruppe [% p.parallel %]</h3>
+  <table class="scores">
+    <tr>
+[% IF p.parallel == 0 %]
+      <th></th>
+[% ELSE %]
+      <th>Gruppe [% p.parallel %]</th>
 [% END %]
-
-  <table>
+[% FOR s = p.songs %]
+      <th>[% s %]</th>
+[% END %]
+[% IF p.num_songs > 1 %]
+      <th>Total</th>
+[% END %]      
+    </tr>
+    
 [% FOR pl = p.players %]
     <tr>
       <th>[% pl.nick %]</th>
 [% IF s.chosen %]
         : [% s.title %]
 [% END %]
-</td>
+      </td>
 [% END %]
+[% IF p.num_songs > 1 %]
+     <td>[% pl.total %]</td>
+[% END %]      
     </tr>
 [% END %]
   </table>