X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_info.mako;h=21a7490f5a30a26af7ba8cfa29632b9716b63c6e;hb=601bffffce3790d702387ebda055d7b7ba86f003;hp=677c0580417e0eb5a3d56ca66a991e62ed4ab2a8;hpb=dace5d81e60b1096cd5bbcf1dd3318d7201e58e9;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 677c058..21a7490 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -1,21 +1,34 @@ <%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:

@@ -238,17 +115,17 @@ Player Information % 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 - +

@@ -275,23 +152,23 @@ Player Information % 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)}) -
-
+ + + ${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:
@@ -318,7 +195,7 @@ 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

-
-
- -
-
    - % if 'nex' in recent_weapons: -
  • - -
  • - % endif - - % if 'rifle' in recent_weapons: -
  • -
    - -

    Rifle

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

    Minstanex

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

    Uzi

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

    Shotgun

    - -
    -
  • - % endif -
+

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

-
-
- -
-
    - % 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 - -
+

Weapon Damage

+ +
+
+
+
-
-
-% endif ##### RECENT GAMES (v2) #### @@ -518,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 @@ -539,4 +302,3 @@ Player Information
% endif -% endif