1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
14 <h2>Sorry, no games yet. Get playing!</h2>
15 <p><a href="${player_url}">Back to player info page</a></p>
20 % if not game_type_cd:
21 <h3>Recent Games by ${player.nick_html_colors()|n}</h3>
23 <h3>Recent ${game_type_cd.upper()} Games by ${player.nick_html_colors()|n}</h3>
25 <p><a href="${player_url}">Back to player info page</a></p>
30 <table class="table table-hover table-condensed">
43 % for rg in games.items:
45 <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
46 <td class="tdcenter"><img title="${rg.game_type_cd}" src="/static/images/icons/24x24/${rg.game_type_cd}.png" alt="${rg.game_type_cd}" /></td>
47 <td><a href="${request.route_url("server_info", id=rg.server_id)}" name="Server info page for ${rg.server_name}">${rg.server_name}</a></td>
48 <td><a href="${request.route_url("map_info", id=rg.map_id)}" name="Map info page for ${rg.map_name}">${rg.map_name}</a></td>
51 % if rg.team == rg.winner:
64 <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
66 <a href="${request.route_url('game_info', id=rg.game_id, _query={'show_elo':1})}" title="View detailed information about this game">
67 % if rg.elo_delta is not None:
68 % if round(rg.elo_delta,2) > 0:
69 <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-up"></i></span>
70 % elif round(rg.elo_delta,2) < 0:
71 <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-down"></i></span>
73 <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
76 <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
87 <!-- navigation links -->
88 ${navlinks("player_game_index", games.page, games.last_page, player_id=player_id)}