<h2>Accuracy</h2>
% for pgstat in pgstats:
% if pgstat.player_game_stat_id in pwstats:
-Accuracy for <a href="${request.route_url('player_info', id=pgstat.player_id)}" title="Go to the player detail page for this player">${pgstat.nick_html_colors()}</a>:
+Accuracy for <a href="${request.route_url('player_info', id=pgstat.player_id)}" title="Go to the player detail page for this player">${pgstat.nick_html_colors()|n}</a>:
${accuracy(pwstats[pgstat.player_game_stat_id][0:5])}
<br />
<br />
<tr>\r
<td>${i}</td>\r
% if player_id != '-':\r
- <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick}</a></td>\r
+ <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>\r
% else:\r
<td>${nick}</td>\r
% endif\r
<%inherit file="base.mako"/>
<%block name="title">
-Player Game Index for ${player.nick_html_colors()} - ${parent.title()}
+Player Game Index for ${player.nick_html_colors()|n} - ${parent.title()}
</%block>
% if not games:
<h2>Sorry, no games yet. Get playing, scrub!</h2>
% else:
-<h2>Recent Games by ${player.nick_html_colors()}</h2>
+<h2>Recent Games by ${player.nick_html_colors()|n}</h2>
% for (playergamestat, game, server, map) in games:
<li><a href="${request.route_url("game_info", id=game.game_id)}" name="Game info page for game #${game.game_id}">#${game.game_id}:</a> <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a></li>
% endfor
% for player in players:\r
<tr>\r
<td>${player.player_id}</th>\r
- <td><a href="${request.route_url("player_info", id=player.player_id)}" title="Go to this player's info page">${player.nick_html_colors()}</a></th>\r
+ <td><a href="${request.route_url("player_info", id=player.player_id)}" title="Go to this player's info page">${player.nick_html_colors()|n}</a></th>\r
<td>${player.create_dt.strftime('%m/%d/%Y at %H:%M')}</th>\r
</tr>\r
% endfor\r
<p>Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!</p>
% else:
-<h2>${player.nick_html_colors()}</h2>
+<h2>${player.nick_html_colors()|n}</h2>
<p>
Member Since: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')} <br />
Last Seen: ${recent_games[0][1].fuzzy_date()} <br />
</tr>
% endfor
</table>
-<a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.nick}">More games</a> played by ${player.nick_html_colors()}...
+<a href="${request.route_url("player_game_index", player_id=player.player_id, page=1)}" title="Game index for ${player.nick}">More games</a> played by ${player.nick_html_colors()|n}...
% endif