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 <h3>Recent Games by ${player.nick_html_colors()|n}</h3>
21 <p><a href="${player_url}">Back to player info page</a></p>
26 <table class="table table-hover table-condensed">
39 % for rg in games.items:
41 <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>
42 <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>
43 <td>${rg.server_name}</td>
44 <td>${rg.map_name}</td>
47 % if rg.team == rg.winner:
60 <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>
62 <a href="${request.route_url('game_info', id=rg.game_id, _query={'show_elo':1})}" title="View detailed information about this game">
63 % if rg.elo_delta is not None:
64 % if round(rg.elo_delta,2) > 0:
65 <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-up"></i></span>
66 % elif round(rg.elo_delta,2) < 0:
67 <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-down"></i></span>
69 <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
72 <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
83 <!-- navigation links -->
84 ${navlinks("player_game_index", games.page, games.last_page, player_id=player_id)}