]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Convert the server_index page.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 14 Mar 2015 02:01:26 +0000 (22:01 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 14 Mar 2015 02:01:26 +0000 (22:01 -0400)
xonstat/templates/server_index.mako

index 7c2e210bb28a7e15dbd61a651683b8fc6033213a..fe3ce11918e3cef782afca2596de720541a86e25 100644 (file)
@@ -3,46 +3,54 @@
 <%namespace file="navlinks.mako" import="navlinks" />
 
 <%block name="navigation">
-${nav.nav('servers')}
+  ${nav.nav('servers')}
 </%block>
 
 <%block name="title">
-Server Index
+  Server Index
 </%block>
 
 % if not servers:
-<h2>Sorry, no servers yet. Get playing!</h2>
+  <h2>Sorry, no servers yet. Get playing!</h2>
 
 % else:
-<div class="row">
-  <div class="span8 offset2">
-    <form class="indexform" method="get" action="${request.route_url('search')}">
-      <input type="hidden" name="fs" />
-      <input class="indexbox" type="text" name="server_name" />
-      <input type="submit" value="search" />
-    </form>
-    <table class="table table-hover table-condensed">
-      <tr>
-        <th style="width:60px;">ID</th>
-        <th>Name</th>
-        <th class="create-dt">Added</th>
-        <th></th>
-      </tr>
-    % for server in servers:
-      <tr>
-        <td>${server.server_id}</td>
-        <td><a href="${request.route_url("server_info", id=server.server_id)}" title="Go to this server's info page">${server.name}</a></th>
-        <td><span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span></td>
-        <td class="tdcenter">
-          <a href="${request.route_url("game_index", _query={'server_id':server.server_id})}" title="View recent games on this server">
-            <i class="glyphicon glyphicon-list"></i>
-          </a>
-        </td>
-      </tr>
-    % endfor
-    </table>
-    % endif
+  <div class="row">
+    <div class="small-8 small-offset-2 columns">
 
-    ${navlinks("server_index", servers.page, servers.last_page)}
-  </div> <!-- /span4 -->
-</div> <!-- /row -->
+      <form method="get" action="${request.route_url('search')}">
+        <div class="row">
+          <div class="small-7 columns">
+            <input type="hidden" name="server_name" />
+            <input type="text" name="nick" />
+          </div>
+          <div class="small-5 columns">
+            <input type="submit" value="search" />
+          </div>
+        </div>
+      </form>
+
+      <table class="table-hover table-condensed">
+        <tr>
+          <th class="small-3">Server ID</th>
+          <th class="small-5">Name</th>
+          <th class="small-3">Added</th>
+          <th class="small-1"></th>
+        </tr>
+      % for server in servers:
+        <tr>
+          <td>${server.server_id}</td>
+          <td class="no-stretch"><a href="${request.route_url("server_info", id=server.server_id)}" title="Go to this server's info page">${server.name}</a></th>
+          <td><span class="abstime" data-epoch="${server.epoch()}" title="${server.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${server.fuzzy_date()}</span></td>
+          <td class="text-center">
+            <a href="${request.route_url("game_index", _query={'server_id':server.server_id})}" title="View recent games on this server">
+              <i class="fa fa-list"></i>
+            </a>
+          </td>
+        </tr>
+      % endfor
+      </table>
+
+      ${navlinks("server_index", servers.page, servers.last_page)}
+    </div>
+  </div>
+% endif