]> git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Fix nick escaping problem by appending |n to disable filtering.
authorantzucaro <azucaro@gmail.com>
Tue, 28 Jun 2011 01:49:06 +0000 (21:49 -0400)
committerantzucaro <azucaro@gmail.com>
Tue, 28 Jun 2011 01:49:06 +0000 (21:49 -0400)
xonstat/templates/game_info.mako
xonstat/templates/main_index.mako
xonstat/templates/player_game_index.mako
xonstat/templates/player_index.mako
xonstat/templates/player_info.mako

index fb1549275e06ae971f6c51ff405de4772419ebea..c8e54f4d0d9fc7601af98f0053f3ebf3d773ce77 100755 (executable)
@@ -28,7 +28,7 @@ ${scoreboard(game.game_type_cd, pgstats)}
 <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 />
index 24eb8274c0bbf7e3cef64316092a3909bbcab527..01e4868ae585e1c6a05c8b7be5de5fc685b1d28b 100755 (executable)
@@ -21,7 +21,7 @@ Main Page - ${parent.title()}
     <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
index 0ace35d08990cabd7ca815423056db7fe26eb59f..60cbd3d2dcb783ad94f529fef494810b8a6a1fbd 100755 (executable)
@@ -1,14 +1,14 @@
 <%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
index 03f52b940864b88e7d234c07c68406df949b681d..7041705d170ce163c7c3122be10c4af069fe2dcc 100755 (executable)
@@ -18,7 +18,7 @@ Player Index - ${parent.title()}
 % 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
index e4147b991b5a0f3a9d1b5e6297f9ca8825b64b05..615716cc067cc47310975b49aa7e6e89c268cde2 100755 (executable)
@@ -31,7 +31,7 @@ ${parent.title()}
 <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 />
@@ -112,5 +112,5 @@ ${accuracy(weapon_stats)}
 </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