]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Show recent games link on *index pages.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 17 Apr 2013 00:52:11 +0000 (20:52 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 17 Apr 2013 00:52:11 +0000 (20:52 -0400)
xonstat/templates/map_index.mako
xonstat/templates/player_index.mako
xonstat/templates/server_index.mako

index d6fd85e633048773c3578ff697193087763e6553..62dac7ec2cce07534209102277edbae8ccd2fc90 100644 (file)
@@ -26,12 +26,18 @@ Map Index
         <th style="width:70px;">ID</th>
         <th>Name</th>
         <th>Added</th>
+        <th></th>
       </tr>
     % for map in maps:
       <tr>
         <td>${map.map_id}</td>
         <td><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>
         <td><span class="abstime" data-epoch="${map.epoch()}" title="${map.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${map.fuzzy_date()}</span></td>
+         <td class="tdcenter">
+          <a href="${request.route_url("game_finder", _query={'map_id':map.map_id})}" title="View recent games on this map">
+            <i class="glyphicon glyphicon-list"></i>
+          </a>
+        </td>
     </td>
       </tr>
     % endfor
index a574d4c0aaf1b8c725b9c7474b90a0dfdd7f1970..9eb319780caeeb27e8330b3953f15152bdbeebbb 100644 (file)
@@ -26,12 +26,18 @@ Player Index
         <th style="width:100px;">Player ID</th>
         <th>Nick</th>
         <th class="create-dt">Joined</th>
+        <th></th>
       </tr>
     % for player in players:
       <tr>
         <td>${player.player_id}</th>
         <td><a href="${request.route_url("player_info", id=player.player_id)}" title="Go to this player's info page">${player.nick_html_colors()|n}</a></th>
         <td><span class="abstime" data-epoch="${player.epoch()}" title="${player.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${player.joined_pretty_date()}</span></th>
+        <td class="tdcenter">
+          <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="View recent games by this player">
+            <i class="glyphicon glyphicon-list"></i>
+          </a>
+        </td>
       </tr>
     % endfor
     </table>
index 3217bed43241e1cb18a8014574e13c1edf092641..d266ba33b864f574d05c9ba956465c1f3ae684be 100644 (file)
@@ -15,7 +15,7 @@ Server Index
 
 % else:
 <div class="row">
-  <div class="span6 offset3">
+  <div class="span8 offset2">
     <form class="indexform" method="get" action="${request.route_url('search')}">
       <input type="hidden" name="fs" />
       <input class="indexbox" type="text" name="server_name" />
@@ -26,12 +26,18 @@ Server Index
         <th style="width:60px;">ID</th>
         <th>Name</th>
         <th class="create-dt">Added</th>
+        <th></th>
       </tr>
     % for server in servers:
       <tr>
         <td>${server.server_id}</td>
         <td><a href="${request.route_url("server_info", id=server.server_id)}" title="Go to this server's info page">${server.name}</a></th>
         <td><span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span></td>
+        <td class="tdcenter">
+          <a href="${request.route_url("game_finder", _query={'server_id':server.server_id})}" title="View recent games on this server">
+            <i class="glyphicon glyphicon-list"></i>
+          </a>
+        </td>
       </tr>
     % endfor
     </table>