From: Ant Zucaro Date: Wed, 8 Feb 2012 02:11:48 +0000 (-0500) Subject: Fix the ordering of things and the view game links. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=adecccece7ef017eef27d873bf756740a868998e;p=xonotic%2Fxonstat.git Fix the ordering of things and the view game links. --- diff --git a/xonstat/templates/map_info.mako b/xonstat/templates/map_info.mako index 9bed031..7e975c1 100755 --- a/xonstat/templates/map_info.mako +++ b/xonstat/templates/map_info.mako @@ -19,51 +19,10 @@ ${parent.title()}

Sorry, that map wasn't found!

% else: -
-
-

${gmap.name}

- -

Recent Games

- - - - - - - - - - - % for (game, srv, map, pgstat) in recent_games: - % if game != '-': - - - - - - % else: - ${pgstat.nick_html_colors()|n} - - % endif - - % else: - - - - - - - % endif - % endfor - -
Game #TypeTimeWinner
${game.game_id}${game.game_type_cd}${game.start_dt.strftime('%m/%d/%Y %H:%M')} - % if pgstat.player_id > 2: - ${pgstat.nick_html_colors()|n} -
----
-
-
- - +

${gmap.name}

+

+ Added on ${gmap.create_dt.strftime('%m/%d/%Y at %H:%M')} +

Top Scoring Players

@@ -146,7 +105,50 @@ ${parent.title()}
-
+ +
+
+

Recent Games

+ + + + + + + + + + + % for (game, srv, map, pgstat) in recent_games: + % if game != '-': + + + + + + % else: + ${pgstat.nick_html_colors()|n} + + % endif + + % else: + + + + + + + % endif + % endfor + +
TypeTimeWinner
View${game.game_type_cd}${game.start_dt.strftime('%m/%d/%Y %H:%M')} + % if pgstat.player_id > 2: + ${pgstat.nick_html_colors()|n} +
----
+
+
+ + % endif diff --git a/xonstat/templates/search.mako b/xonstat/templates/search.mako index 12768f0..3c4f794 100755 --- a/xonstat/templates/search.mako +++ b/xonstat/templates/search.mako @@ -89,14 +89,14 @@ % if result_type == "game": - + % for (game, server, gmap) in results: - + diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index 5bb4ed8..2c8d496 100755 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -22,58 +22,12 @@ Server Information

IP Address: ${server.ip_addr}
Revision: ${server.revision}
- Created: ${server.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
+ Added on ${server.create_dt.strftime('%m/%d/%Y at %I:%M %p')}

-
-
-

Recent Games

-
Game ID Map Server Played On
${game.game_id}View ${gmap.name} ${server.name} ${game.create_dt.strftime('%m/%d/%Y at %I:%M %p')}
- - - - - - - - - - - % for (game, srv, map, pgstat) in recent_games: - % if game != '-': - - - - - - - % else: - ${pgstat.nick_html_colors()|n} - - % endif - - % else: - - - - - - - - % endif - % endfor - -
Game #TypeMapTimeWinner
${game.game_id}${game.game_type_cd}${map.name}${game.start_dt.strftime('%m/%d/%Y %H:%M')} - % if pgstat.player_id > 2: - ${pgstat.nick_html_colors()|n} -
-----
- - - -

Top Scoring Players

@@ -163,4 +117,52 @@ Server Information
+ + +
+
+

Recent Games

+ + + + + + + + + + + + % for (game, srv, map, pgstat) in recent_games: + % if game != '-': + + + + + + + % else: + ${pgstat.nick_html_colors()|n} + + % endif + + % else: + + + + + + + + % endif + % endfor + +
TypeMapTimeWinner
View${game.game_type_cd}${map.name}${game.start_dt.strftime('%m/%d/%Y %H:%M')} + % if pgstat.player_id > 2: + ${pgstat.nick_html_colors()|n} +
-----
+
+
+ + % endif