]> git.sesse.net Git - ccbs/commitdiff
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 5f18e5eb38d3fdb613225e9eb8deead22c9d86c3..c1b510b36cd1f31f34fcf692185e0021a96729e5 100644 (file)
   <div>
     <table>
       <tr>
   <div>
     <table>
       <tr>
+        <th></th>
         <th>Spiller</th>
         <th>Poengsum</th>
         <th>Arrangement</th>
       </tr>
         <th>Spiller</th>
         <th>Poengsum</th>
         <th>Arrangement</th>
       </tr>
-      
+
+[% SET rowno = 1 %]
 [% FOR s = scores %]
       <tr>
 [% 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>
         <td>[% s.nick %]</td>
         <td>[% s.score %]</td>
         <td><a href="show-tournament.pl?id=[% s.tournament %]">[% s.tournamentname %]</a></td>