]> git.sesse.net Git - ccbs/blobdiff - html/templates/song.tmpl
Add a backend for showing songs and the best scores on them.
[ccbs] / html / templates / song.tmpl
diff --git a/html/templates/song.tmpl b/html/templates/song.tmpl
new file mode 100644 (file)
index 0000000..5de46c0
--- /dev/null
@@ -0,0 +1,30 @@
+[%# vim:set filetype=html: %]
+  <h2>Generelle fakta</h2>
+
+  <div>
+    <ul>
+      <li>Tittel: [% song.title %]</li>
+      <li>Artist: [% song.artist %]</li>
+      <li>Tempo: [% song.minbpm %]-[% song.maxbpm %] bpm</li>
+    </ul>
+  </div>
+
+  <h2>Beste scores</h2>
+
+  <div>
+    <table>
+      <tr>
+        <th>Spiller</th>
+        <th>Poengsum</th>
+        <th>Arrangement</th>
+      </tr>
+      
+[% FOR s = scores %]
+      <tr>
+        <td>[% s.nick %]</td>
+        <td>[% s.score %]</td>
+        <td>[% s.tournamentname %]</td>
+      </tr>
+[% END %]
+    </table>
+  </div>