]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Filter the nicks properly.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 17 Feb 2012 02:23:12 +0000 (21:23 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 17 Feb 2012 02:23:12 +0000 (21:23 -0500)
xonstat/templates/main_index.mako

index 5c7353cbb4cceed224483371b2c09ac8de97b8f8..f5b8abd710d001e108bee4294b63d8bc23ac91ad 100755 (executable)
@@ -31,9 +31,9 @@ Leaderboard
         <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
+          <td>${nick|n}</td>\r
           % endif\r
           % if elo != '-':\r
           <td>${round(elo, 3)}</td>\r
@@ -65,9 +65,9 @@ Leaderboard
         <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
+          <td>${nick|n}</td>\r
           % endif\r
           % if elo != '-':\r
           <td>${round(elo, 3)}</td>\r
@@ -99,9 +99,9 @@ Leaderboard
         <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
+          <td>${nick|n}</td>\r
           % endif\r
           % if elo != '-':\r
           <td>${round(elo, 3)}</td>\r
@@ -136,7 +136,7 @@ Leaderboard
           % 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|n}</a></td>\r
           % else:\r
-          <td>${nick}</td>\r
+          <td>${nick|n}</td>\r
           % endif\r
           <td class="play-time">${alivetime}</td>\r
         </tr>\r