]> git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_hashkey_info_text.mako
Add a plain text hashkey view for menu integration.
[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 # NOTE: using unixtime here
9 e joined ${player_joined}
10 % if player.active_ind == True:
11 e active-ind 1
12 % else:
13 e active-ind 0
14 % endif
15 e location
16 % if 'overall' in elos.keys():
17 # NOTE: need game type here to specify which elo is being shown as "best"
18 e elo ${elos['overall'].elo} ${elos['overall'].game_type_cd}
19 % endif
20 % if 'overall' in ranks.keys():
21 # NOTE: need game type here to specify which percentile is being shown as "best"
22 e percentile ${ranks['overall'].percentile} ${ranks['overall'].game_type_cd}
23 % endif
24 e matches ${games_played[0].games}
25 % if 'overall' in ranks.keys():
26 # NOTE: need game type here to specify which rank is being shown as "best"
27 e rank ${ranks['overall'].rank} ${ranks['overall'].game_type_cd}
28 % endif
29 e total-deaths ${overall_stats['overall'].total_deaths}
30 e total-fckills ${overall_stats['overall'].total_carrier_frags}
31 e alivetime ${overall_stats['overall'].total_playing_time_secs}
32 e total-kills ${overall_stats['overall'].total_kills}
33 e wins ${games_played[0].wins}
34 e favorite-map ${fav_maps['overall'].map_name} ${fav_maps['overall'].times_played} ${fav_maps['overall'].game_type_cd}
35 % for game_type_cd in overall_stats.keys():
36 { G ${game_type_cd}
37 % if game_type_cd in elos.keys():
38 e elo ${elos[game_type_cd].elo}
39 % endif
40 % if game_type_cd in ranks.keys():
41 e percentile ${ranks[game_type_cd].percentile}
42 % endif
43 % for gp in games_played:
44 % if gp.game_type_cd == game_type_cd:
45 e matches ${gp.games}
46 % endif
47 % endfor
48 % if game_type_cd in ranks.keys():
49 e rank ${ranks[game_type_cd].rank}
50 % endif
51 e total-deaths ${overall_stats[game_type_cd].total_deaths}
52 e alivetime ${overall_stats[game_type_cd].total_playing_time_secs}
53 e total-kills ${overall_stats[game_type_cd].total_kills}
54 % for gp in games_played:
55 % if gp.game_type_cd == game_type_cd:
56 e wins ${gp.wins}
57 % endif
58 % endfor
59 e favorite-map ${fav_maps[game_type_cd].map_name} ${fav_maps[game_type_cd].times_played}
60 }
61 % endfor