From 67770f6a980ef9bc98f4f1c39fad39669816e9a0 Mon Sep 17 00:00:00 2001 From: Jan Behrens Date: Wed, 17 Apr 2013 21:04:23 +0200 Subject: [PATCH] Added link to player captimes; fixed issue with ctf gametype on player_info page --- xonstat/templates/player_captimes.mako | 13 ++++++++----- xonstat/templates/player_info.mako | 11 +++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/xonstat/templates/player_captimes.mako b/xonstat/templates/player_captimes.mako index 7932e2b..fdb9462 100644 --- a/xonstat/templates/player_captimes.mako +++ b/xonstat/templates/player_captimes.mako @@ -5,14 +5,15 @@ Player captimes +% if len(captimes) == 0: +

Sorry, no caps yet. Get playing!

+% else: +
- -

${player.nick_html_colors()|n}

+

Fastest Flag Captures by ${player.nick_html_colors()|n}

Back to player info page

- -

Fastest flag capture times:

- + @@ -37,3 +38,5 @@ Player captimes + +% endif diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 576c526..f51dac9 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -220,6 +220,15 @@ Player Information % if g.game_type_cd in fav_maps: Favorite Map: ${fav_maps[g.game_type_cd].map_name}
% endif + + % if g.game_type_cd == 'ctf': + % if overall_stats[g.game_type_cd].total_captures is not None: + Fastest flag captures... + % endif + % else: +
+ % endif +

@@ -253,6 +262,8 @@ Player Information % if overall_stats[g.game_type_cd].cap_ratio is not None: Cap Ratio: ${round(overall_stats[g.game_type_cd].cap_ratio,2)} (${overall_stats[g.game_type_cd].total_captures} captures, ${overall_stats[g.game_type_cd].total_pickups} pickups)
% endif + % else: +
% endif

-- 2.39.2