<%inherit file="base.mako"/> <%namespace name="nav" file="nav.mako" /> <%namespace file="accuracy.mako" import="accuracy" /> <%block name="navigation"> ${nav.nav('players')} <%block name="js"> <%block name="title"> Player Information % if player is None:

This player is so good we couldn't find him!

Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!

% else:

${player.nick_html_colors()|n}

Member Since: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
Last Seen: ${recent_games[0][1].fuzzy_date()}
Playing Time: ${total_stats['alivetime']}
% if total_games > 0 and total_stats['wins'] is not None: Win Percentage: ${round(float(total_stats['wins'])/total_games * 100, 2)}% (${total_stats['wins']} wins, ${total_games - total_stats['wins']} losses)
% endif % if total_stats['kills'] > 0 and total_stats['deaths'] > 0: Kill Ratio: ${round(float(total_stats['kills'])/total_stats['deaths'], 3)} (${total_stats['kills']} kills, ${total_stats['deaths']} deaths)
% endif <% games_breakdown_str = ', '.join(["{0} {1}".format(ng, gt) for (gt, ng) in games_breakdown]) %> Games Played: ${total_games} (${games_breakdown_str})
% if elos_display is not None and len(elos_display) > 0: Elo: ${', '.join(elos_display)}
%if '*' in ', '.join(elos_display): *preliminary Elo %endif % endif

% endif % if accs is not None:

Nex Accuracy

% endif ##### RECENT GAMES (v2) #### % if recent_games:

Recent Games

% for (gamestat, game, server, map) in recent_games: % endfor
Type Server Map Result Played
view ${game.game_type_cd} ${server.name} ${map.name} % if gamestat.team != None: % if gamestat.team == game.winner: Win % else: Loss % endif % else: % if gamestat.rank == 1: Win % else: Loss (#${gamestat.rank}) % endif % endif ${game.fuzzy_date()}
% if total_games > 10: More games played by ${player.nick_html_colors()|n}... % endif
% endif