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')} + -${parent.title()} +<%block name="title"> +Player Information % if player is None: -

Sorry, that player wasn't found!

+

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: -

Player Detail

- +
+
+

${player.nick_html_colors()|n}

+

+ 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']}
+

+
+
+% endif + + +% if game_stats: +
+
+

Overall Game Stats

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ScoreCarrier KillsKillsCollectsDeathsDestroysSuicidesDestroys (with key)CapturesPushesPickupsPushedDropsReturns
${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']}
+ % endif +
+
+ + +% if weapon_stats: +
+
+

Overall Accuracy

+ ${accuracy(weapon_stats)} +
+
% endif + +##### RECENT GAMES (v2) #### % if recent_games: -

Recent Games

- +
+
+

Recent Games

+ + + + + + + + + + + + % for (gamestat, game, server, map) in recent_games: + + + + + + + + % endfor + +
Game TypeMapResultPlayedPermalink
${game.game_type_cd}${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
+ % if game_stats['total_games_played'] > 10: + More games played by ${player.nick_html_colors()|n}... + % endif +
+
% endif