From: Jan Behrens Date: Wed, 17 Apr 2013 18:48:37 +0000 (+0200) Subject: Adding links to access gametype-filtered lists X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b8781019d65300747c6d7de8a9b9641fa3aafe4;p=xonotic%2Fxonstat.git Adding links to access gametype-filtered lists --- diff --git a/xonstat/templates/game_index.mako b/xonstat/templates/game_index.mako index cf29f55..da6205d 100644 --- a/xonstat/templates/game_index.mako +++ b/xonstat/templates/game_index.mako @@ -3,6 +3,11 @@ <%namespace file="scoreboard.mako" import="scoreboard" /> <%namespace file="navlinks.mako" import="navlinks" /> +<%block name="css"> +${parent.css()} + + + <%block name="navigation"> ${nav.nav('games')} @@ -12,16 +17,41 @@ Game Index % if not games: + % if not game_type_cd:

Sorry, no games yet. Get playing!

+ % else: +

Sorry, no ${game_type_cd.upper()} games yet. Get playing!

+ % endif % else:
-
+
% if not game_type_cd:

Recent Games

% else:

Recent ${game_type_cd.upper()} Games

% endif +
+
+
+
+ +
+
% for rg in games.items:
${rg.game_type_cd} diff --git a/xonstat/templates/player_game_index.mako b/xonstat/templates/player_game_index.mako index c642568..c2fd6ce 100644 --- a/xonstat/templates/player_game_index.mako +++ b/xonstat/templates/player_game_index.mako @@ -2,6 +2,11 @@ <%namespace name="nav" file="nav.mako" /> <%namespace file="navlinks.mako" import="navlinks" /> +<%block name="css"> +${parent.css()} + + + <%block name="navigation"> ${nav.nav('games')} @@ -11,7 +16,11 @@ Recent Games % if not games: + % if not game_type_cd:

Sorry, no games yet. Get playing!

+ % else: +

Sorry, no ${game_type_cd.upper()} games yet. Get playing!

+ % endif

Back to player info page

% else: @@ -25,8 +34,25 @@ Recent Games

Back to player info page

+
-
+
+ +
+
@@ -84,6 +110,7 @@ Recent Games + ${navlinks("player_game_index", games.page, games.last_page, player_id=player_id)} % endif diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index 24be3d3..576c526 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -266,7 +266,7 @@ Player Information