From 43430362c1e82350d9ceac7f62c1eef47da58fe9 Mon Sep 17 00:00:00 2001
From: Ant Zucaro <azucaro@gmail.com>
Date: Sat, 15 Sep 2012 08:20:48 -0400
Subject: [PATCH] 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.
---
 xonstat/templates/rank_index.mako | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

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()}
-</%block>
-
-% if not ranks:
-<h2>Sorry, no ranks yet. Get some buddies together and start playing!</h2>
-
-% else:
-<h2>
 % 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
+</%block>
 
-Rank Index</h2>
+% if not ranks:
+<h2>Sorry, no ranks yet. Get some buddies together and start playing!</h2>
+
+% else:
 <table id="rank-index-table" border="1">
   <tr>
     <th>Rank</th>
-- 
2.39.5