]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Add a box for adding people.
[ccbs] / html / templates / show-tournament.tmpl
index cc8cdbcc576087a30d65793ef069696e0217f1b7..733b1cfc8e64d37c8566fd6f7220f5b0f456d757 100644 (file)
@@ -1,4 +1,27 @@
 [%# 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>
 
@@ -13,6 +36,9 @@
 [% FOR s = p.songs %]
       <th>[% s %]</th>
 [% END %]
+[% IF p.num_songs > 1 %]
+      <th>Total</th>
+[% END %]      
     </tr>
     
 [% FOR pl = p.players %]
 [% IF s.chosen %]
         : [% s.title %]
 [% END %]
-</td>
+      </td>
 [% END %]
+[% IF p.num_songs > 1 %]
+     <td>[% pl.total %]</td>
+[% END %]      
     </tr>
 [% END %]
   </table>