]> git.sesse.net Git - ccbs/blobdiff - html/templates/song.tmpl
Added a ranking beside each player in the song highscore list.
[ccbs] / html / templates / song.tmpl
index 5f18e5eb38d3fdb613225e9eb8deead22c9d86c3..c1b510b36cd1f31f34fcf692185e0021a96729e5 100644 (file)
   <div>
     <table>
       <tr>
+        <th></th>
         <th>Spiller</th>
         <th>Poengsum</th>
         <th>Arrangement</th>
       </tr>
-      
+
+[% SET rowno = 1 %]
 [% FOR s = scores %]
       <tr>
+        <th>[% rowno %]</th>
+[% SET rowno = rowno + 1 %]
         <td>[% s.nick %]</td>
         <td>[% s.score %]</td>
         <td><a href="show-tournament.pl?id=[% s.tournament %]">[% s.tournamentname %]</a></td>