]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Show ranking list on the web interface.
[ccbs] / html / templates / show-tournament.tmpl
index df259eff291a6726fbe6da42327cbfd00443e494..9588c529df51605045524b57c9ca2d8213239b8e 100644 (file)
@@ -1,9 +1,32 @@
 [%# 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 %]
-  <table>
+  <table class="scores">
     <tr>
 [% IF p.parallel == 0 %]
       <th></th>