X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=xonstat%2Ftemplates%2Fplayer_captimes.mako;h=8391fb5312c511d92f274eb443799d575790a9ec;hb=18d8957c4cc41032f6000d968735471985dad5a8;hp=b397381083c205a8ee1f789cf93eae4b154c7ec6;hpb=a9267693af6c042bee22cae3ccd1f0f2307b58d0;p=xonotic%2Fxonstat.git diff --git a/xonstat/templates/player_captimes.mako b/xonstat/templates/player_captimes.mako index b397381..8391fb5 100644 --- a/xonstat/templates/player_captimes.mako +++ b/xonstat/templates/player_captimes.mako @@ -1,41 +1,60 @@ <%inherit file="base.mako"/> <%namespace name="nav" file="nav.mako" /> +<%namespace file="navlinks.mako" import="navlinks" /> + +<%block name="navigation"> + ${nav.nav('players')} + <%block name="title"> -Player captimes + Player captimes -
-
- -

${player.nick_html_colors()|n}

-

Back to player info page

- -

Fastest flag capture times:

- - - - - - - ## - - - - - - - % for ct in captimes: - - - - ## - - - - % endfor - -
GameCaptimeNickMapServerDate
view${ct.fastest_cap.total_seconds()} seconds${ct.html_nick|n}${ct.map_name}${ct.server_name}${ct.create_dt_fuzzy}
+% if len(captimes) == 0: +

Sorry, no caps yet. Get playing!

+

Back to player info page

+% else: + +
+
+

Fastest Flag Captures by + + ${player.nick_html_colors()|n} + +

+ + + + + + + + + + + + + % for ct in captimes.items: + + + + + + + % endfor + +
GameCaptimeMapServerDate
view${ct.fastest_cap.total_seconds()} seconds${ct.map_name}${ct.server_name}${ct.create_dt_fuzzy}
+ + % if sort == "fastest": +

* sorted by fastest - sort by most recent instead

+ % else: +

* sorted by most recent - sort by fastest instead

+ % endif + +
-
+ + + ${navlinks("player_captimes", captimes.page, captimes.last_page, player_id=player_id, search_query=request.GET)} +% endif