X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_game_index.mako;h=d2b138a5fd5d6c77673c64ed427e1512d161c4c8;hb=d365227ef7ea7bfc05454d94a98819f17c7741ae;hp=60cbd3d2dcb783ad94f529fef494810b8a6a1fbd;hpb=476e6b22398b63ba4b3806304104163128e7a742;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_game_index.mako b/xonstat/templates/player_game_index.mako old mode 100755 new mode 100644 index 60cbd3d..d2b138a --- a/xonstat/templates/player_game_index.mako +++ b/xonstat/templates/player_game_index.mako @@ -1,23 +1,128 @@ <%inherit file="base.mako"/> +<%namespace name="nav" file="nav.mako" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="navigation"> + ${nav.nav('games')} + <%block name="title"> -Player Game Index for ${player.nick_html_colors()|n} - ${parent.title()} + Recent Games % if not games: -

Sorry, no games yet. Get playing, scrub!

+

Sorry, no + % if game_type_descr: + ${game_type_descr.lower()} + % endif + games yet for + ${player.nick_html_colors()|n}. Get playing! +

+ +

Back to player info page

% else: -

Recent Games by ${player.nick_html_colors()|n}

-% for (playergamestat, game, server, map) in games: -
  • #${game.game_id}: ${map.name}
  • -% endfor -
    -% endif +
    +
    +
    Recent + % if game_type_descr: + ${game_type_descr} + % endif + Games by + + ${player.nick_html_colors()|n} + +
    +
    +
    -% if games.previous_page: -Previous -% endif -% if games.next_page: -Next +
    +
    + +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + % for rg in games.items: + + + + + + + + + + % endfor + +
    TypeServerMapResultPlayedElo
    view${rg.server_name}${rg.map_name} + % if rg.team != None: + % if rg.team == rg.winner: + Win + % else: + Loss + % endif + % else: + % if rg.rank == 1: + Win + % else: + Loss (#${rg.rank}) + % endif + % endif + ${rg.fuzzy_date} + + % 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 + +
    +
    +
    + + + + ${navlinks("player_game_index", games.page, games.last_page, player_id=player_id, search_query=request.GET)} % endif