From: Ant Zucaro Date: Sat, 15 Sep 2012 12:20:48 +0000 (-0400) Subject: Fix the header on the ranks page. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43430362c1e82350d9ceac7f62c1eef47da58fe9;p=xonotic%2Fxonstat.git Fix the header on the ranks page. Consolidate the logic for the header, which was being neglected. Now it has the full header present without an h2 which essentially duplicated the same header. I removed the h2 and left the header. --- diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako index 47a2d06..2a72a94 100644 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -2,25 +2,21 @@ <%namespace file="navlinks.mako" import="navlinks" /> <%block name="title"> -Rank Index - ${parent.title()} - - -% if not ranks: -

Sorry, no ranks yet. Get some buddies together and start playing!

- -% else: -

% if game_type_cd == 'dm': -Deathmatch +Deathmatch Rank Index % elif game_type_cd == 'duel': -Duel +Duel Rank Index % elif game_type_cd == 'tdm': -Team Deathmatch +Team Deathmatch Rank Index % elif game_type_cd == 'ctf': -Capture The Flag +Capture The Flag Rank Index % endif + -Rank Index

+% if not ranks: +

Sorry, no ranks yet. Get some buddies together and start playing!

+ +% else:
Rank