From: Jan Behrens Date: Tue, 16 Apr 2013 18:03:46 +0000 (+0200) Subject: Some fixing up in the "captimes" pages X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=cdc2266209f57a18974a9e779fa5b4277509ed17 Some fixing up in the "captimes" pages --- diff --git a/xonstat/templates/map_captimes.mako b/xonstat/templates/map_captimes.mako index caca88a..55ebc1e 100644 --- a/xonstat/templates/map_captimes.mako +++ b/xonstat/templates/map_captimes.mako @@ -29,7 +29,13 @@ Map captimes view ${ct.fastest_cap.total_seconds()} seconds - ${ct.player_nick_html|n} + + % if rg.player_id > 2: + ${rg.nick_html_colors|n} + % else: + ${rg.nick_html_colors|n} + % endif + ${ct.server_name} ${ct.create_dt_fuzzy} % endfor diff --git a/xonstat/templates/player_captimes.mako b/xonstat/templates/player_captimes.mako index b397381..7932e2b 100644 --- a/xonstat/templates/player_captimes.mako +++ b/xonstat/templates/player_captimes.mako @@ -18,7 +18,6 @@ Player captimes Game Captime - ##Nick Map Server Date @@ -29,7 +28,6 @@ Player captimes view ${ct.fastest_cap.total_seconds()} seconds - ##${ct.html_nick|n} ${ct.map_name} ${ct.server_name} ${ct.create_dt_fuzzy} diff --git a/xonstat/views/map.py b/xonstat/views/map.py index bdd8c88..cd6f80f 100644 --- a/xonstat/views/map.py +++ b/xonstat/views/map.py @@ -118,7 +118,8 @@ def _map_info_data(request): filter(PlayerCaptime.map_id == map_id).\ filter(Player.player_id == PlayerCaptime.player_id).\ order_by(PlayerCaptime.fastest_cap).\ - limit(10).all() + limit(25).\ + all() captimes = [Captime(c.player_id, html_colors(c.nick), c.fastest_cap, c.game_id) for c in captimes_raw]