X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_info.mako;h=ba4a84b846d6eb1372826dd437b60c84121825d2;hb=7767b8c3e14386df3fe91ec53a29681b2c6e84d8;hp=cfa47c361c0d05c96d4265ddb905bc88e905a819;hpb=6cc52ee0a9bad9b68e77e3a33f2ed94a0cead665;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index cfa47c3..ba4a84b 100755 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -1,32 +1,131 @@ <%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="accuracy.mako" import="accuracy" /> -<%block name="title"> -% if player: -Player Information for ${player.nick} - -% endif +<%block name="navigation"> +${nav.nav('players')} +%block> -${parent.title()} +<%block name="title"> +Player Information %block> % if player is None: -
Seriously though, he probably doesn't exist...just a figment of your imagination. Carry on then!
% else: -
+ Member Since: ${player.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
+ Last Seen: ${recent_games[0][1].fuzzy_date()}
+ Playing Time: ${game_stats['total_alivetime']}
+ Games Played: ${game_stats['total_games_played']}
+ Average Rank: ${game_stats['avg_rank']}
+
Score | +Carrier Kills | +Kills | +Collects | +Deaths | +Destroys | +Suicides | +Destroys (with key) | +Captures | +Pushes | +Pickups | +Pushed | +Drops | +Returns | +
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
${game_stats['total_score']} | +${game_stats['total_carrier_frags']} | +${game_stats['total_kills']} | +${game_stats['total_collects']} | +${game_stats['total_deaths']} | +${game_stats['total_destroys']} | +${game_stats['total_suicides']} | +${game_stats['total_destroys']} | +${game_stats['total_captures']} | +${game_stats['total_pushes']} | +${game_stats['total_pickups']} | +${game_stats['total_pushed']} | +${game_stats['total_drops']} | +${game_stats['total_returns']} | +
Game Type | +Map | +Result | +Played | +Permalink | +
---|---|---|---|---|
+ | ${map.name} | ++ % if gamestat.team != None and gamestat.team == game.winner: + Won (#${gamestat.rank}) + % elif gamestat.team != None and gamestat.team != game.winner: + Lost (#${gamestat.rank}) + % else: + #${gamestat.rank} + % endif + | +${game.fuzzy_date()} | +View | +