From 0ed44224be737de4a96b97e48732d53feb8a6f9a Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 10 Sep 2013 21:40:54 -0400 Subject: [PATCH] Working charts on the player_info pages. Yeah! --- xonstat/templates/player_info.mako | 212 +++++++---------------------- 1 file changed, 48 insertions(+), 164 deletions(-) diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 2539a0d..a1c40ef 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -11,13 +11,21 @@ ${nav.nav('players')} <%block name="css"> ${parent.css()} + + <%block name="js"> ${parent.js()} -% if player is not None: - + + + - - -% endif <%block name="title"> Player Information - -% if player is None: -

This player is so good we couldn't find him!

-

Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!

- -% else:

@@ -240,7 +107,7 @@ Player Information % else:
% endif - + % if g.game_type_cd == 'ctf': % if overall_stats[g.game_type_cd].total_captures is not None: Fastest flag captures...
@@ -250,7 +117,7 @@ Player Information % else:
% endif - +

@@ -320,7 +187,7 @@ Player Information
-### ACCURACY GRAPH -${accuracy_graph(recent_weapons)} -### DAMAGE GRAPH -${damage_graph(recent_weapons)} +##### Weapon Accuracy Chart #### +
+
+

Weapon Accuracy

+
+ +
+
+
+ + +##### Weapon Damage Chart #### +
+
+

Weapon Damage

+
+ +
+
+
+ + ##### RECENT GAMES (v2) #### % if recent_games: @@ -403,4 +288,3 @@ ${damage_graph(recent_weapons)}
% endif -% endif -- 2.39.2