Add player_ranks to the mix - it is a batch table intended to represent the latest...
[xonotic/xonstat.git] / xonstat / templates / rank_index.mako
index 3ddb7f9597d2d337c205adb0d1109a7c8cdf857b..75f4574cf2980bba2dade6b8375e230064cde3fc 100755 (executable)
@@ -28,10 +28,10 @@ Rank Index</h2>
     <th>Elo</th>\r
   </tr>\r
 <% i = 1 %>\r
-% for (rank, player) in ranks:\r
+% for rank in ranks:\r
   <tr>\r
-    <td>${i}</td>\r
-    <td><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${player.nick_html_colors()|n}</a></th>\r
+    <td>${rank.rank}</td>\r
+    <td><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${rank.nick_html_colors()|n}</a></th>\r
     <td>${round(rank.elo, 3)}</th>\r
   </tr>\r
 <% i += 1 %>\r
@@ -39,5 +39,5 @@ Rank Index</h2>
 </table>\r
 \r
 <!-- navigation links -->\r
-${navlinks("rank_index_paged", ranks.page, ranks.last_page)}\r
+${navlinks("rank_index_paged", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}\r
 % endif\r