- <p>
- Member Since: <small>${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')} </small><br />
- Last Seen: <small>${recent_games[0][1].fuzzy_date()} </small><br />
- Playing Time: <small>${total_stats['alivetime']} </small><br />
- % if total_games > 0 and total_stats['wins'] is not None:
- Win Percentage: <small>${round(float(total_stats['wins'])/total_games * 100, 2)}% (${total_stats['wins']} wins, ${total_games - total_stats['wins']} losses) </small><br />
- % endif
- % if total_stats['kills'] > 0 and total_stats['deaths'] > 0:
- Kill Ratio: <small>${round(float(total_stats['kills'])/total_stats['deaths'], 3)} (${total_stats['kills']} kills, ${total_stats['deaths']} deaths) </small><br />
- % endif
- <% games_breakdown_str = ', '.join(["{0} {1}".format(ng, gt) for (gt, ng) in games_breakdown]) %>
- Games Played: <small>${total_games} (${games_breakdown_str})</small><br />
- % if elos_display is not None and len(elos_display) > 0:
- Elo:
- <small>${', '.join(elos_display)} </small>
- <br />
- %if '*' in ', '.join(elos_display):
- <small><i>*preliminary Elo</i></small>
- %endif
- % endif
- </p>
+ <h4><i><span class="abstime" data-epoch="${player.epoch()}" title="${player.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">Joined ${player.joined_pretty_date()}</span> (player #${player.player_id})</i></h4>
+ </div>
+</div>
+
+<div class="row">
+ <div id="gbtabcontainer" class="tabbable tabs-below">
+ <div class="tab-content">
+ % for g in games_played:
+ <div class="tab-pane fade in
+ % if g.game_type_cd == 'overall':
+ active
+ % endif
+ " id="tab-${g.game_type_cd}">
+ <div class="span5">
+ <p>
+ % if g.game_type_cd in overall_stats:
+ Last Played: <small><span class="abstime" data-epoch="${overall_stats[g.game_type_cd].last_played_epoch}" title="${overall_stats[g.game_type_cd].last_played.strftime('%a, %d %b %Y %H:%M:%S UTC')}"> ${overall_stats[g.game_type_cd].last_played_fuzzy} </span> <br /></small>
+ % endif
+
+ Games Played: <small>${g.games} <br /></small>
+
+ Playing Time: <small>${overall_stats[g.game_type_cd].total_playing_time} <br /></small>
+
+ % if g.game_type_cd in fav_maps:
+ Favorite Map: <small>${fav_maps[g.game_type_cd].map_name} <br /></small>
+ % endif
+
+ % if g.game_type_cd == 'ctf':
+ % if overall_stats[g.game_type_cd].total_captures is not None:
+ <small><a href="${request.route_url("player_captimes", id=player.player_id)}">Fastest flag captures...</a></small>
+ % else:
+ <small><br /></small>
+ % endif
+ % else:
+ <small><br /></small>
+ % endif
+
+ </p>
+ </div>
+ <div class="span5">
+ <p>
+ Win Percentage: <small>${round(g.win_pct,2)}% (${g.wins} wins, ${g.losses} losses) <br /></small>
+
+ % if g.game_type_cd in overall_stats:
+ % if overall_stats[g.game_type_cd].k_d_ratio is not None:
+ Kill Ratio: <small>${round(overall_stats[g.game_type_cd].k_d_ratio,2)} (${overall_stats[g.game_type_cd].total_kills} kills, ${overall_stats[g.game_type_cd].total_deaths} deaths) <br /></small>
+ % endif
+ % endif
+
+ % if g.game_type_cd in elos:
+ % if g.game_type_cd == 'overall':
+ Best Elo: <small>${round(elos[g.game_type_cd].elo,2)} (${elos[g.game_type_cd].game_type_cd}, ${elos[g.game_type_cd].games} games) <br /></small>
+ % else:
+ Elo: <small>${round(elos[g.game_type_cd].elo,2)} (${elos[g.game_type_cd].games} games) <br /></small>
+ % endif
+ % endif
+
+ % if g.game_type_cd in ranks:
+ % if g.game_type_cd == 'overall':
+ Best Rank: <small>${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} (${ranks[g.game_type_cd].game_type_cd}, percentile: ${round(ranks[g.game_type_cd].percentile,2)})<br /></small>
+
+ % else:
+ Rank: <small>${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} (percentile: ${round(ranks[g.game_type_cd].percentile,2)})<br /></small>
+ % endif
+ % endif
+
+ % if g.game_type_cd == 'ctf':
+ % if overall_stats[g.game_type_cd].cap_ratio is not None:
+ Cap Ratio: <small>${round(overall_stats[g.game_type_cd].cap_ratio,2)} (${overall_stats[g.game_type_cd].total_captures} captures, ${overall_stats[g.game_type_cd].total_pickups} pickups) <br /></small>
+ % else:
+ <small><br /></small>
+ % endif
+ % else:
+ <small><br /></small>
+ % endif
+ </p>
+ </div>
+ </div>
+ % endfor
+ </div>
+ </div>
+</div>
+<div class="row">
+ <div class="span12">
+ <ul id="gbtab" class="nav nav-tabs">
+ % for g in games_played:
+ <li>
+ <a href="#tab-${g.game_type_cd}" data-toggle="tab" alt="${g.game_type_cd}" title="">
+ <span class="sprite sprite-${g.game_type_cd}"> </span><br />
+ ${g.game_type_cd} <br />
+ <small>(${g.games})</small>
+ </a>
+ </li>
+ % endfor
+ </ul>
+ </div>
+</div>
+
+
+% if 'nex' in recent_weapons or 'rifle' in recent_weapons or 'minstanex' in recent_weapons or 'uzi' in recent_weapons or 'shotgun' in recent_weapons:
+<div class="row">
+ <div class="span12">
+ <h3>Accuracy</h3>
+ <div id="acc-graph" class="flot" style="width:95%; height:200px;">
+ </div>
+
+ <div class="weapon-nav accuracy-nav">
+ <ul>
+ % if 'nex' in recent_weapons:
+ <li>
+ <div class="acc-weap weapon-active">
+ <span class="sprite sprite-nex"></span>
+ <p><small>Nex</small></p>
+ <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':'nex'})}" title="Show nex accuracy"></a>
+ </div>
+ </li>
+ % endif
+
+ % if 'rifle' in recent_weapons:
+ <li>
+ <div class="acc-weap">
+ <span class="sprite sprite-rifle"></span>
+ <p><small>Rifle</small></p>
+ <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':'rifle'})}" title="Show rifle accuracy"></a>
+ </div>
+ </li>
+ % endif
+
+ % if 'minstanex' in recent_weapons:
+ <li>
+ <div class="acc-weap">
+ <span class="sprite sprite-minstanex"></span>
+ <p><small>Minstanex</small></p>
+ <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':'minstanex'})}" title="Show minstanex accuracy"></a>
+ </div>
+ </li>
+ % endif
+
+ % if 'uzi' in recent_weapons:
+ <li>
+ <div class="acc-weap">
+ <span class="sprite sprite-uzi"></span>
+ <p><small>Uzi</small></p>
+ <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':'uzi'})}" title="Show uzi accuracy"></a>
+ </div>
+ </li>
+ % endif
+
+ % if 'shotgun' in recent_weapons:
+ <li>
+ <div class="acc-weap">
+ <span class="sprite sprite-shotgun"></span>
+ <p><small>Shotgun</small></p>
+ <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':'shotgun'})}" title="Show shotgun accuracy"></a>
+ </div>
+ </li>
+ % endif
+ </ul>
+ </div>
+