]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/rank_index.mako
Merge branch 'master' into zykure/approved
[xonotic/xonstat.git] / xonstat / templates / rank_index.mako
index 47a2d065630b82e789ab08dcc05beb5b84c9649c..809a1640c975dd8ea1dc66b9a707ec6483371238 100644 (file)
@@ -2,42 +2,46 @@
 <%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>
+
+<div class="row">
+  <div class="span6 offset3">
+    % if not ranks:
+    <h2>Sorry, no ranks yet. Get some buddies together and start playing!</h2>
 
-Rank Index</h2>
-<table id="rank-index-table" border="1">
-  <tr>
-    <th>Rank</th>
-    <th>Nick</th>
-    <th>Elo</th>
-  </tr>
-<% i = 1 %>
-% for rank in ranks:
-  <tr>
-    <td>${rank.rank}</td>
-    <td><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${rank.nick_html_colors()|n}</a></th>
-    <td>${round(rank.elo, 3)}</th>
-  </tr>
-<% i += 1 %>
-% endfor
-</table>
+    % else:
+    <table id="rank-index-table" class="table table-hover table-condensed" border="1">
+      <tr>
+        <th style="width:40px;">Rank</th>
+        <th style="width:420px;">Nick</th>
+        <th style="width:90px;">Elo</th>
+      </tr>
+      <% i = 1 %>
+      % for rank in ranks:
+      <tr>
+        <td>${rank.rank}</td>
+        <td class="nostretch" style="max-width:420px;"><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${rank.nick_html_colors()|n}</a></th>
+        <td>${int(round(rank.elo))}</th>
+      </tr>
+      <% i += 1 %>
+      % endfor
+    </table>
+  </div> <!-- /span6 -->
+</div> <!-- /row -->
 
-<!-- navigation links -->
-${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}
+<div class="row">
+  <div class="span6 offset3">
+    <!-- navigation links -->
+    ${navlinks("rank_index", ranks.page, ranks.last_page, game_type_cd=game_type_cd)}
+  </div> <!-- /span6 -->
+</div> <!-- /row -->
 % endif