]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/main_index.mako
Clean up main page, remove centering and generally remove style where appropriate.
[xonotic/xonstat.git] / xonstat / templates / main_index.mako
index 0571483452de2c71cd727186a0f247283408e38c..24eb8274c0bbf7e3cef64316092a3909bbcab527 100755 (executable)
@@ -16,16 +16,18 @@ Main Page - ${parent.title()}
         <th>Nick</th>\r
         <th>Score</th>\r
     </tr>\r
+<% i = 1 %>\r
 % for (player_id, nick, score) in top_players:\r
     <tr>\r
+        <td>${i}</td>\r
         % if player_id != '-':\r
-        <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${player_id}</a></td>\r
+        <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick}</a></td>\r
         % else:\r
-        <td>${player_id}</td>\r
-        % endif\r
         <td>${nick}</td>\r
+        % endif\r
         <td>${score}</td>\r
     </tr>\r
+    <% i = i+1 %>\r
 % endfor\r
 </table>\r
 \r
@@ -39,16 +41,18 @@ Main Page - ${parent.title()}
         <th>Server</th>\r
         <th>Games</th>\r
     </tr>\r
+<% i = 1 %>\r
 % for (server_id, name, count) in top_servers:\r
     <tr>\r
+        <td>${i}</td>\r
         % if server_id != '-':\r
-        <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for this server">${server_id}</a></td>\r
+        <td><a href="${request.route_url('server_info', id=server_id)}" title="Go to the server info page for ${name}">${name}</a></td>\r
         % else:\r
-        <td>${server_id}</td>\r
-        % endif\r
         <td>${name}</td>\r
+        % endif\r
         <td>${count}</td>\r
     </tr>\r
+    <% i = i+1 %>\r
 % endfor\r
 </table>\r
 \r
@@ -62,16 +66,18 @@ Main Page - ${parent.title()}
         <th>Map</th>\r
         <th>Times Played</th>\r
     </tr>\r
+<% i = 1 %>\r
 % for (map_id, name, count) in top_maps:\r
     <tr>\r
+        <td>${i}</td>\r
         % if map_id != '-':\r
-        <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for this map">${map_id}</a></td>\r
+        <td><a href="${request.route_url('map_info', id=map_id)}" title="Go to the map info page for ${name}">${name}</a></td>\r
         % else:\r
-        <td>${map_id}</td>\r
-        % endif\r
         <td>${name}</td>\r
+        % endif\r
         <td>${count}</td>\r
     </tr>\r
+    <% i = i+1 %>\r
 % endfor\r
 </table>\r
 </div> <!-- END LEADERBOARD -->\r
@@ -85,6 +91,7 @@ Main Page - ${parent.title()}
     </tr>\r
     <tr>\r
         <th>Game #</th>\r
+        <th>Type</th>\r
         <th>Server</th>\r
         <th>Map</th>\r
         <th>Time</th>\r
@@ -93,10 +100,11 @@ Main Page - ${parent.title()}
     % for (game, server, map) in recent_games:\r
     % if game != '-':\r
     <tr>\r
-        <td>${game.game_id}</td>\r
-        <td>${server.name}</td>\r
-        <td>${map.name}</td>\r
-        <td>${game.start_dt}</td>\r
+        <td><a href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">${game.game_id}</a></td>\r
+        <td>${game.game_type_cd}</td>\r
+        <td><a href="${request.route_url('server_info', id=server.server_id)}" title="Go to the detail page for this server">${server.name}</a></td>\r
+        <td><a href="${request.route_url('map_info', id=map.map_id)}" title="Go to the map detail page for this map">${map.name}</a></td>\r
+        <td>${game.start_dt.strftime('%m/%d/%Y %H:%M')}</td>\r
         <td>${game.winner}</td>\r
     </tr>\r
     % else:\r
@@ -106,6 +114,7 @@ Main Page - ${parent.title()}
         <td>-</td>\r
         <td>-</td>\r
         <td>-</td>\r
+        <td>-</td>\r
     </tr>\r
     % endif\r
     % endfor\r