]> git.sesse.net Git - ccbs/commitdiff
Add a script for showing the tournaments.
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 01:04:45 +0000 (01:04 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 01:04:45 +0000 (01:04 +0000)
html/templates/show-tournament.tmpl [new file with mode: 0644]

diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl
new file mode 100644 (file)
index 0000000..b17b39b
--- /dev/null
@@ -0,0 +1,27 @@
+[%# vim:set filetype=html: %]
+[% FOR r = rounds %]
+  <h2>Runde [% r.round %]</h2>
+
+[% FOR p = r.parallels %]
+[% IF p.parallel != 0 %]
+  <h3>Gruppe [% p.parallel %]</h3>
+[% END %]
+
+  <table>
+[% FOR pl = p.players %]
+    <tr>
+      <th>[% pl.nick %]</th>
+[% FOR s = pl.songs %]
+      <td>
+        [% s.score %]
+[% IF s.chosen %]
+        : [% s.title %]
+[% END %]
+</td>
+[% END %]
+    </tr>
+[% END %]
+  </table>
+[% END %]
+  
+[% END %]