%inherit file="base.mako"/> <%namespace name="nav" file="nav.mako" /> <%namespace file="accuracy.mako" import="accuracy" /> <%block name="navigation"> ${nav.nav('players')} %block> <%block name="js"> % if player is not None: % endif %block> <%block name="title"> Player Information %block> % if player is None:
Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!
% else:
Member Since: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
Last Seen: ${recent_games[0][1].fuzzy_date()}
% if fav_server is not None:
Favorite Servers:
<% srv_list = fav_server[:3] %>
% for srvinfo in srv_list:
% if srvinfo != srv_list[-1]:
<% delim = ", " %>
% else:
<% delim = "" %>
% endif
${srvinfo['name']}${delim}
% endfor
% endif
% if fav_map is not None:
Favorite Maps:
<% map_list = fav_map[:3] %>
% for mapinfo in map_list:
% if mapinfo != map_list[-1]:
<% delim = ", " %>
% else:
<% delim = "" %>
% endif
${mapinfo['name']}${delim}
% endfor
% endif
% if fav_weapon is not None:
Favorite Weapons:
<% wpn_list = fav_weapon[:3] %>
% for wpninfo in wpn_list:
% if wpninfo != wpn_list[-1]:
<% delim = ", " %>
% else:
<% delim = "" %>
% endif
${wpninfo['name']}${delim}
% endfor
% endif
Playing Time: ${total_stats['alivetime']}
% if total_stats['alivetime_month'] and total_stats['alivetime'] > total_stats['alivetime_month']:
% if total_stats['alivetime_week'] and total_stats['alivetime_month'] > total_stats['alivetime_week']:
(${total_stats['alivetime_month']} this month; ${total_stats['alivetime_week']} this week)
% else:
(${total_stats['alivetime_month']} this month)
% endif
% endif
<% games_breakdown_str = ', '.join(["{0} {1}".format(ng, gt) for (gt, ng) in total_stats['games_breakdown'].items()]) %>
Games Played: ${total_stats['games']}
(${games_breakdown_str})
% if total_stats['games'] > 0 and total_stats['wins'] is not None:
Win Percentage: ${round(float(total_stats['wins'])/total_stats['games'] * 100, 2)}% (${total_stats['wins']} wins, ${total_stats['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, ${total_stats['suicides']} suicides)
% endif
% if total_stats['games_breakdown'].has_key('duel'):
Duel Stats:
% if total_stats['duel_wins'] is not None:
Win Percentage ${round(float(total_stats['duel_wins'])/total_stats['games_breakdown']['duel'] * 100, 2)}% (${total_stats['duel_wins']} wins, ${total_stats['games_breakdown']['duel'] - total_stats['duel_wins']} losses)
% endif
% if total_stats['duel_kills'] > 0 and total_stats['duel_deaths'] > 0:
| Kill Ratio ${round(float(total_stats['duel_kills'])/total_stats['duel_deaths'], 3)} (${total_stats['duel_kills']} kills, ${total_stats['duel_deaths']} deaths, ${total_stats['duel_suicides']} suicides)
% endif
% endif
% if total_stats['games_breakdown'].has_key('dm'):
DM Stats:
% if total_stats['dm_wins'] is not None:
Win Percentage ${round(float(total_stats['dm_wins'])/total_stats['games_breakdown']['dm'] * 100, 2)}% (${total_stats['dm_wins']} wins, ${total_stats['games_breakdown']['dm'] - total_stats['dm_wins']} losses)
% endif
% if total_stats['dm_kills'] > 0 and total_stats['dm_deaths'] > 0:
| Kill Ratio ${round(float(total_stats['dm_kills'])/total_stats['dm_deaths'], 3)} (${total_stats['dm_kills']} kills, ${total_stats['dm_deaths']} deaths, ${total_stats['dm_suicides']} suicides)
% endif
% endif
% if total_stats['games_breakdown'].has_key('tdm'):
TDM Stats:
% if total_stats['tdm_wins'] is not None:
Win Percentage ${round(float(total_stats['tdm_wins'])/total_stats['games_breakdown']['tdm'] * 100, 2)}% (${total_stats['tdm_wins']} wins, ${total_stats['games_breakdown']['tdm'] - total_stats['tdm_wins']} losses)
% endif
% if total_stats['tdm_kills'] > 0 and total_stats['tdm_deaths'] > 0:
| Kill Ratio ${round(float(total_stats['tdm_kills'])/total_stats['tdm_deaths'], 3)} (${total_stats['tdm_kills']} kills, ${total_stats['tdm_deaths']} deaths, ${total_stats['tdm_suicides']} suicides)
% endif
% endif
% if total_stats['games_breakdown'].has_key('ctf'):
CTF Stats:
% if total_stats['ctf_wins'] is not None:
Win Percentage ${round(float(total_stats['ctf_wins'])/total_stats['games_breakdown']['ctf'] * 100, 2)}% (${total_stats['ctf_wins']} wins, ${total_stats['games_breakdown']['ctf'] - total_stats['ctf_wins']} losses)
% endif
% if total_stats['ctf_pickups'] > 0 and total_stats['ctf_caps'] > 0:
| Cap Ratio ${round(float(total_stats['ctf_caps'])/total_stats['ctf_pickups'], 3)} (${total_stats['ctf_caps']} caps, ${total_stats['ctf_pickups']} pickups, ${total_stats['ctf_returns']} returns, ${total_stats['ctf_fckills']} fckills)
% endif
% endif
% if elos_display is not None and len(elos_display) > 0:
Elo:
${elos_display}
%if '*' in elos_display:
*preliminary Elo
%endif
% endif
% if ranks_display != '':
Ranks: ${ranks_display}
% endif
Type | Server | Map | Result | Played | |
---|---|---|---|---|---|
view | ${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()} |