X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_info.mako;h=dfd190d2e980cba48411082e0241b7e9a9fbe710;hb=ae752d21cc782dafd274703601f5e3347d0d2915;hp=f51dac9627cf265cc62e2bfff5c061b2b55916bf;hpb=67770f6a980ef9bc98f4f1c39fad39669816e9a0;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index f51dac9..dfd190d 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -1,21 +1,35 @@ <%inherit file="base.mako"/> <%namespace name="nav" file="nav.mako" /> -<%namespace file="accuracy.mako" import="accuracy" /> <%block name="navigation"> -${nav.nav('players')} +% if player.email_addr is not None: +${nav.nav('players', True)} +% else: +${nav.nav('players', False)} +% endif <%block name="css"> ${parent.css()} + + <%block name="js"> ${parent.js()} -% if player is not None: - + + + + + + - -% endif <%block name="title"> Player Information - -% if player is None: -

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.nick_html_colors()|n}

-

Joined ${player.joined_pretty_date()} (player #${player.player_id})

+

+ ${player.nick_html_colors()|n} +

+

+ Joined ${player.joined_pretty_date()} (player #${player.player_id}) + % if cake_day: + + % endif +

@@ -202,6 +86,7 @@ Player Information
% for g in games_played: + % if not g.game_type_cd in ['cq']:
${overall_stats[g.game_type_cd].last_played_fuzzy}
+ % else: +
% endif - Games Played: ${g.games}
+ Games Played: + % if g.game_type_cd == 'overall': + + % else: + + % endif + ${g.games}
Playing Time: ${overall_stats[g.game_type_cd].total_playing_time}
% if g.game_type_cd in fav_maps: - Favorite Map: ${fav_maps[g.game_type_cd].map_name}
+ Favorite Map: ${fav_maps[g.game_type_cd].map_name}
+ % else: +
% endif - + % if g.game_type_cd == 'ctf': % if overall_stats[g.game_type_cd].total_captures is not None: - Fastest flag captures... + Fastest flag captures...
+ % else: +
% endif % else:
% endif - +

@@ -239,6 +136,8 @@ Player Information % if overall_stats[g.game_type_cd].k_d_ratio is not None: Kill Ratio: ${round(overall_stats[g.game_type_cd].k_d_ratio,2)} (${overall_stats[g.game_type_cd].total_kills} kills, ${overall_stats[g.game_type_cd].total_deaths} deaths)
% endif + % else: +
% endif % if g.game_type_cd in elos: @@ -247,20 +146,39 @@ Player Information % else: Elo: ${round(elos[g.game_type_cd].elo,2)} (${elos[g.game_type_cd].games} games)
% endif + % else: +
% endif % if g.game_type_cd in ranks: % if g.game_type_cd == 'overall': - Best Rank: ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} (${ranks[g.game_type_cd].game_type_cd}, percentile: ${round(ranks[g.game_type_cd].percentile,2)})
- + Best Rank: + + + ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} + + (${ranks[g.game_type_cd].game_type_cd}, percentile: ${round(ranks[g.game_type_cd].percentile,2)}) +
+
% else: - Rank: ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} (percentile: ${round(ranks[g.game_type_cd].percentile,2)})
+ Rank: + + + ${ranks[g.game_type_cd].rank} of ${ranks[g.game_type_cd].max_rank} + + (percentile: ${round(ranks[g.game_type_cd].percentile,2)}) +
+
% endif + % else: +
% endif % if g.game_type_cd == 'ctf': - % if overall_stats[g.game_type_cd].cap_ratio is not None: + % if overall_stats[g.game_type_cd].cap_ratio is not None: Cap Ratio: ${round(overall_stats[g.game_type_cd].cap_ratio,2)} (${overall_stats[g.game_type_cd].total_captures} captures, ${overall_stats[g.game_type_cd].total_pickups} pickups)
+ % else: +
% endif % else:
@@ -268,6 +186,7 @@ Player Information

+ % endif % endfor
@@ -276,8 +195,8 @@ Player Information
-% if 'nex' in recent_weapons or 'rifle' in recent_weapons or 'minstanex' in recent_weapons or 'uzi' in recent_weapons or 'shotgun' in recent_weapons: -
+##### Weapon Accuracy Chart #### +
-

Accuracy

-
+

Weapon Accuracy

+ +
+
- -
- -
- -
-
-% endif +
+
-% if 'rocketlauncher' in recent_weapons or 'grenadelauncher' in recent_weapons or 'electro' in recent_weapons or 'crylink' in recent_weapons or 'laser' in recent_weapons: -
+##### Weapon Damage Chart #### +
-

Damage Efficiency

-
+

Weapon Damage

+ +
+
+
+
-
-
    - % if 'rocketlauncher' in recent_weapons: -
  • -
    - -

    Rocket

    - -
    -
  • - % endif - - % if 'grenadelauncher' in recent_weapons: -
  • -
    - -

    Mortar

    - -
    -
  • - % endif - - % if 'electro' in recent_weapons: -
  • -
    - -

    Electro

    - -
    -
  • - % endif - - % if 'crylink' in recent_weapons: -
  • -
    - -

    Crylink

    - -
    -
  • - % endif - - % if 'hagar' in recent_weapons: -
  • -
    - -

    Hagar

    - -
    -
  • - % endif - - % if 'laser' in recent_weapons: -
  • -
    - -

    Laser

    - -
    -
  • - % endif - -
-
- -
-
-% endif ##### RECENT GAMES (v2) #### @@ -476,14 +281,14 @@ Player Information % if rg.elo_delta is not None: % if round(rg.elo_delta,2) > 0: - + +${round(rg.elo_delta,2)} % elif round(rg.elo_delta,2) < 0: - + ${round(rg.elo_delta,2)} % else: - + % endif % else: - + % endif @@ -492,9 +297,8 @@ Player Information % if total_games > 10: -

More...

+

More...

% endif % endif -% endif