]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/main_index.mako
Merge branch 'master' into zykure/approved
[xonotic/xonstat.git] / xonstat / templates / main_index.mako
index f823cb67b206953ac83e5528f9704a48c4b510b2..f91b1c17858e77ccf01b9db0d1b7f7dc3a9144d8 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">
@@ -54,7 +56,7 @@ Leaderboard
         % for r in rs:
         <tr>
           <td>${i}</td>
-          <td><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
+          <td class="player-nick"><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td>
           <td>${round(r.elo, 3)}</td>
         </tr>
         <% i = i+1 %>
@@ -88,7 +90,7 @@ Leaderboard
         <tr>
           <td>${i}</td>
           % if player_id != '-':
-          <td><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
+          <td class="player-nick"><a href="${request.route_url('player_info', id=player_id)}" title="Go to the player info page for this player">${nick|n}</a></td>
           % else:
           <td>${nick|n}</td>
           % endif
@@ -187,7 +189,7 @@ Leaderboard
           <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
-          <td>
+          <td class="player-nick">
             % if rg.player_id > 2:
             <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a></td>
             % else: