1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="accuracy.mako" import="accuracy" />
5 <%block name="navigation">
10 <script src="/static/js/jquery-1.7.1.min.js"></script>
11 <script src="/static/js/jquery.flot.min.js"></script>
12 <script type="text/javascript">
16 $.plot($("#acc-graph"), [
20 { yaxis: {ticks: 10, min: 0, max: 100 },
31 <h2>This player is so good we couldn't find him!</h2>
32 <p>Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!</p>
37 <h2>${player.nick_html_colors()|n}</h2>
39 Member Since: <small>${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')} </small><br />
40 Last Seen: <small>${recent_games[0][1].fuzzy_date()} </small><br />
41 Playing Time: <small>${total_stats['alivetime']} </small><br />
42 % if total_games > 0 and total_stats['wins'] is not None:
43 Win Percentage: <small>${round(float(total_stats['wins'])/total_games * 100, 2)}% (${total_stats['wins']} wins, ${total_games - total_stats['wins']} losses) </small><br />
45 % if total_stats['kills'] > 0 and total_stats['deaths'] > 0:
46 Kill Ratio: <small>${round(float(total_stats['kills'])/total_stats['deaths'], 3)} (${total_stats['kills']} kills, ${total_stats['deaths']} deaths) </small><br />
48 <% games_breakdown_str = ', '.join(["{0} {1}".format(ng, gt) for (gt, ng) in games_breakdown]) %>
49 Games Played: <small>${total_games} (${games_breakdown_str})</small><br />
50 % if elos_display is not None and len(elos_display) > 0:
52 <small>${', '.join(elos_display)} </small>
54 %if '*' in ', '.join(elos_display):
55 <small><i>*preliminary Elo</i></small>
64 % if accs is not None:
68 <div id="acc-graph" style="width:800px; height:200px;">
75 ##### RECENT GAMES (v2) ####
80 <table class="table table-bordered table-condensed">
92 % for (gamestat, game, server, map) in recent_games:
94 <td><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=game.game_id)}" title="View detailed information about this game">view</a></td>
95 <td style="width:20px;"><img title="${game.game_type_cd}" src="/static/images/icons/24x24/${game.game_type_cd}.png" alt="${game.game_type_cd}" /></td>
96 <td>${server.name}</td>
99 % if gamestat.team != None:
100 % if gamestat.team == game.winner:
106 % if gamestat.rank == 1:
109 Loss (#${gamestat.rank})
113 <td>${game.fuzzy_date()}</td>
118 % if total_games > 10:
119 <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.nick}">More games played by ${player.nick_html_colors()|n}...</a>