Added a ranking beside each player in the song highscore list.
authorSteinar H. Gunderson <sesse@samfundet.no>
Fri, 18 Feb 2005 13:38:07 +0000 (13:38 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Fri, 18 Feb 2005 13:38:07 +0000 (13:38 +0000)
html/templates/song.tmpl

index 5f18e5e..c1b510b 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>