<%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