- <div class="hero-unit">
- <img src="/static/css/img/web_background_l2.png" />
- #####<p id="statline">Tracking <a href="#">12345</a> players, <a href="#">12345</a> games (<a href="#">123</a> duels, <a href="#">123</a> ctfs, <a href="#">123</a> dms), <a href="#">12345</a> servers, and <a href="#">12345</a> maps since November 2011.</p>
- <p id="statline">Tracking Xonotic statistics since October 2011.</p>
- </div>
+ <div class="text-center">
+ <img src="/static/css/img/web_background_l2.png" />
+ % 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')}">${'{: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>