From cdc2266209f57a18974a9e779fa5b4277509ed17 Mon Sep 17 00:00:00 2001 From: Jan Behrens Date: Tue, 16 Apr 2013 20:03:46 +0200 Subject: [PATCH] Some fixing up in the "captimes" pages --- xonstat/templates/map_captimes.mako | 8 +++++++- xonstat/templates/player_captimes.mako | 2 -- xonstat/views/map.py | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) 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] -- 2.39.2