]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Show TDM ranks on the front page.
authorantzucaro <azucaro@gmail.com>
Sun, 14 Apr 2013 15:07:27 +0000 (11:07 -0400)
committerantzucaro <azucaro@gmail.com>
Sun, 14 Apr 2013 15:07:27 +0000 (11:07 -0400)
xonstat/templates/main_index.mako
xonstat/views/main.py

index f823cb67b206953ac83e5528f9704a48c4b510b2..a856b242c2ca09bc53418ea7babfeee25e173144 100644 (file)
@@ -21,7 +21,7 @@ Leaderboard
 </%block>
 
 ##### RANKS #####
-% if len(ranks) < 3:
+% if len(ranks) < 4:
   <div class="row">
     <div class="span12">
       <p style="text-align: center;"><i class="icon-white icon-info-sign"> </i> You don't seem to have any ranks yet.</p>
@@ -30,15 +30,17 @@ Leaderboard
 
 % else:
   <div class="row">
-    % for rs in ranks[:3]:
+    % for rs in ranks[:4]:
     % if len(rs) > 0:
-    <div class="span4">
+    <div class="span3">
       % if rs[0].game_type_cd == 'duel':
       <h3>Duel Ranks</h3>
       % elif rs[0].game_type_cd == 'ctf':
       <h3>CTF Ranks</h3>
       % elif rs[0].game_type_cd == 'dm':
       <h3>DM Ranks</h3>
+      % elif rs[0].game_type_cd == 'tdm':
+      <h3>TDM Ranks</h3>
       % endif
 
       <table class="table table-hover table-condensed">
index dfaa5ee6926f2f7fbe709b041c28edd7974090ad..30833e48838dbd01b9d572c7adb320674b7411c7 100644 (file)
@@ -185,7 +185,7 @@ def _main_index_data(request):
 
     # the three top ranks tables
     ranks = []
-    for gtc in ['duel', 'ctf', 'dm']:
+    for gtc in ['duel', 'ctf', 'dm', 'tdm']:
         rank = get_ranks(gtc)
         if len(rank) != 0:
             ranks.append(rank)