X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_info.mako;h=c88c96c27c924cf3511fbc72ec9b5a7fc6abd033;hp=291dcd02d505bb309340ba9fcb25209455f76b29;hb=1a02dc60b8aeb312c2fd8024362224cfbc3ddc7a;hpb=ad40356f66706897eec4b244b622e252f29a388b diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 291dcd0..c88c96c 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -191,7 +191,7 @@ Player Information
Member Since: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
- Last Seen: ${recent_games[0][1].fuzzy_date()}
+ Last Seen: ${recent_games[0][1].fuzzy_date()}
Playing Time: ${total_stats['alivetime']}
% if total_stats['alivetime_month'] and total_stats['alivetime'] > total_stats['alivetime_month']:
@@ -450,19 +450,27 @@ Player Information
-
Games Played:
- ${total}
-
+ Games Played:
+ ${total}
+ % if gtc_key == 'overall':
+
+ % else:
+ ${round(float(total)/total_stats['games'] * 100, 2)}% of all games
+ % endif
Playing Time:
${alivetime} hours
+ % if gtc_key == 'overall':
+ % else:
+ ${round(float(alivetime.total_seconds())/total_stats['alivetime'].total_seconds() * 100, 2)}% of total playing time
+ % endif
-
% if gtc_key == 'ctf':
Win Percentage:
- ${round(float(wins)/total * 100, 2)}%
- ${wins} wins, ${losses} losses
+ Win Percentage:
+ ${round(float(wins)/total * 100, 2)}%
+ ${wins} wins, ${losses} losses
@@ -581,7 +589,7 @@ Player Information
% endif
% endif
-
% endfor
${game.fuzzy_date()}
+ ${game.fuzzy_date()}