<%namespace name="nav" file="nav.mako" />
<%block name="navigation">
- % if player.email_addr is not None:
- ${nav.nav('players', True)}
- % else:
+ ##### Disable the login button until a replacement is implemented.
${nav.nav('players', False)}
- % endif
</%block>
<%block name="css">
drawAccuracyChart("#accuracyChart", data);
});
</script>
- <script src="https://login.persona.org/include.js" type="text/javascript"></script>
- <script type="text/javascript">${request.persona_js}</script>
</%block>
<%block name="title">
<div class="row">
<div class="small-12 columns">
- <h2> ${player.nick_html_colors()|n} </h2>
+ <h2>
+ ${player.nick_html_colors()|n}
+ % for medal in medals:
+ <img src="/static/medals/${medal.image}" alt="${medal.alt}" title="${medal.alt}" />
+ % endfor
+ </h2>
+
<h5>
- <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>
+ <i><span class="abstime" data-epoch="${player.epoch()}" title="${player.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">Joined ${player.fuzzy_date()}</span> (player #${player.player_id})</i>
% if cake_day:
<img src="/static/images/icons/24x24/cake.png" title="Happy cake day!" />
% endif
</h5>
- <br />
</div>
</div>
<small><br /></small>
% endif
- % if g.game_type_cd in ranks:
- % if g.game_type_cd == 'overall':
- Best Rank:
- <small>
- <a href="${request.route_url('rank_index', game_type_cd=ranks[g.game_type_cd].game_type_cd, _query={'page':(ranks[g.game_type_cd].rank-1)/20+1})}" title="Player rank page for this player">
- ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank}
- </a>
- (${ranks[g.game_type_cd].game_type_cd}, percentile: ${round(ranks[g.game_type_cd].percentile,2)})
- <br />
- </small>
- % else:
- Rank:
- <small>
- <a href="${request.route_url('rank_index', game_type_cd=g.game_type_cd, _query={'page':(ranks[g.game_type_cd].rank-1)/20+1})}" title="Player rank page for this player">
- ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank}
- </a>
- (percentile: ${round(ranks[g.game_type_cd].percentile,2)})
- <br />
- </small>
- % endif
- % else:
- <small><br /></small>
- % endif
+ <small><br /></small>
% if g.game_type_cd == 'ctf':
% if overall_stats[g.game_type_cd].cap_ratio is not None:
##### ACCURACY CHART ####
<div class="row" id="accuracyChartRow">
<div class="small-12 columns">
- <h3>Weapon Accuracy</h3>
+ <h5>Weapon Accuracy</h5>
<noscript>
Sorry, but you've disabled JavaScript! It is required to draw the accuracy chart.
</noscript>
##### DAMAGE CHART ####
<div class="row" id="damageChartRow">
<div class="small-12 columns">
- <h3>Weapon Damage</h3>
+ <h5>Weapon Damage</h5>
<noscript>
Sorry, but you've disabled JavaScript! It is required to draw the damage chart.
</noscript>
% if recent_games:
<div class="row">
<div class="small-12 columns">
- <h3>Recent Games</h3>
+ <h5>Recent Games <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.stripped_nick}"><i class="fa fa-plus-circle"></i></a></h5>
<table class="table-hover table-condensed">
<thead>
<tr>
% endfor
</tbody>
</table>
-
- % if total_games > 10:
- <p>
- <a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.stripped_nick}">More...</a>
- </p>
- % endif
-
</div>
</div>
% endif