]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_hashkey_info_text.mako
Merge pull request #31 from antzucaro/piwik
[xonotic/xonstat.git] / xonstat / templates / player_hashkey_info_text.mako
1 V 1
2 R XonStat/1.0
3 T ${now}
4 S ${request.route_url('player_info', id=player.player_id)}
5 P ${hashkey}
6 n ${player.nick}
7 i ${player.player_id}
8 e joined_dt ${player_joined_dt}
9 e last_seen_dt ${most_recent_game.start_dt}
10 % if player.active_ind == True:
11 e active-ind 1
12 % else:
13 e active-ind 0
14 % endif
15 e location
16 e matches ${games_played[0].games}
17 e total-deaths ${overall_stats['overall'].total_deaths}
18 e total-fckills ${overall_stats['overall'].total_carrier_frags}
19 e alivetime ${overall_stats['overall'].total_playing_time_secs}
20 e total-kills ${overall_stats['overall'].total_kills}
21 e wins ${games_played[0].wins}
22 e favorite-map ${fav_maps['overall'].map_name} ${fav_maps['overall'].times_played} ${fav_maps['overall'].game_type_cd}
23 % for game_type_cd in overall_stats.keys():
24 % if game_type_cd != 'overall':
25 G ${game_type_cd}
26 % if game_type_cd in elos.keys():
27 e elo ${elos[game_type_cd].elo}
28 % endif
29 % if game_type_cd in ranks.keys():
30 e percentile ${ranks[game_type_cd].percentile}
31 % endif
32 % for gp in games_played:
33 % if gp.game_type_cd == game_type_cd:
34 e matches ${gp.games}
35 % endif
36 % endfor
37 % if game_type_cd in ranks.keys():
38 e rank ${ranks[game_type_cd].rank}
39 % endif
40 e total-deaths ${overall_stats[game_type_cd].total_deaths}
41 e alivetime ${overall_stats[game_type_cd].total_playing_time_secs}
42 e total-kills ${overall_stats[game_type_cd].total_kills}
43 % for gp in games_played:
44 % if gp.game_type_cd == game_type_cd:
45 e wins ${gp.wins}
46 % endif
47 % endfor
48 e favorite-map ${fav_maps[game_type_cd].map_name} ${fav_maps[game_type_cd].times_played}
49 % endif
50 % endfor