-<%inherit file="base.mako"/>\r
-<%namespace file="navlinks.mako" import="navlinks" />\r
-\r
-<%block name="title">\r
-Map Index - ${parent.title()}\r
-</%block>\r
-\r
-% if not maps:\r
-<h2>Sorry, no maps yet. Get playing!</h2>\r
-\r
-% else:\r
-<h2>Map Index</h2>\r
-<form method="get" action="${request.route_url('search')}">\r
- <input type="hidden" name="fs" />\r
- <input type="text" name="map_name" />\r
- <input type="submit" value="search" />\r
-</form>\r
-<table id="map-index-table" border="1">\r
- <tr>\r
- <th>Name</th>\r
- <th>Added</th>\r
- </tr>\r
-% for map in maps:\r
- <tr>\r
- <td><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>\r
- <td>${map.create_dt.strftime('%m/%d/%Y at %H:%M')}</td>\r
-</td>\r
- </tr>\r
-% endfor\r
-</table>\r
-% endif\r
-\r
-<!-- navigation links -->\r
-${navlinks("map_index_paged", maps.page, maps.last_page)}\r
+<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
+<%namespace file="navlinks.mako" import="navlinks" />
+
+<%block name="navigation">
+ ${nav.nav('maps')}
+</%block>
+
+<%block name="title">
+ Map Index
+</%block>
+
+% if not maps:
+ <h2>Sorry, no maps yet. Get playing!</h2>
+
+% else:
+ <div class="row">
+ <div class="small-12 large-6 large-offset-3 columns">
+
+ <form method="get" action="${request.route_url('search')}">
+ <div class="row">
+ <div class="small-7 columns">
+ <input type="hidden" name="fs" />
+ <input type="text" name="map_name" />
+ </div>
+ <div class="small-5 columns">
+ <input type="submit" value="search" />
+ </div>
+ </div>
+ </form>
+
+ <table class="table-hover table-condensed">
+ <thead>
+ <tr>
+ <th class="small-3">ID</th>
+ <th class="small-5">Name</th>
+ <th class="small-3">Added</th>
+ <th class="small-1"></th>
+ </tr>
+ </thead>
+ % for map in maps:
+ <tr>
+ <td>${map.map_id}</td>
+ <td class="no-stretch"><a href="${request.route_url("map_info", id=map.map_id)}" title="Go to this map's info page">${map.name}</a></th>
+ <td><span class="abstime" data-epoch="${map.epoch()}" title="${map.create_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${map.fuzzy_date()}</span></td>
+ <td class="text-center">
+ <a href="${request.route_url("game_index", _query={'map_id':map.map_id})}" title="View recent games on this map">
+ <i class="fa fa-list"></i>
+ </a>
+ </td>
+ </td>
+ </tr>
+ % endfor
+ </table>
+
+ <!-- navigation links -->
+ ${navlinks("map_index", maps.page, maps.last_page)}
+ </div> <!-- /span4 -->
+ </div> <!-- /row -->
+% endif