]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Put commas in the aggregate stats line.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 29 Mar 2013 19:38:53 +0000 (15:38 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 29 Mar 2013 19:38:53 +0000 (15:38 -0400)
xonstat/templates/main_index.mako

index 62d98872f7dce5e4b85886db6935c548aed85dff..f823cb67b206953ac83e5528f9704a48c4b510b2 100644 (file)
@@ -15,7 +15,7 @@ Leaderboard
     % if summary_stats is None:
     <p id="statline">Tracking Xonotic statistics since October 2011.</p>
     % else:
-    <p id="statline">Tracking <a href="${request.route_url('player_index')}">${summary_stats.total_players}</a> players, <a href="${request.route_url('game_index')}">${summary_stats.total_games}</a> games (${summary_stats.duel_games} duel, ${summary_stats.ctf_games} ctf, ${summary_stats.dm_games} dm), and <a href="${request.route_url('server_index')}">${summary_stats.total_servers}</a> servers since October 2011.</p>
+    <p id="statline">Tracking <a href="${request.route_url('player_index')}">${'{:2,d}'.format(summary_stats.total_players)}</a> players, <a href="${request.route_url('game_index')}">${'{:2,d}'.format(summary_stats.total_games)}</a> games (${'{:2,d}'.format(summary_stats.duel_games)} duel; ${'{:2,d}'.format(summary_stats.ctf_games)} ctf; ${'{:2,d}'.format(summary_stats.dm_games)} dm) and <a href="${request.route_url('server_index')}">${'{:2,d}'.format(summary_stats.total_servers)}</a> servers since October 2011.</p>
     % endif
   </div>
 </%block>