]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/map_index.mako
Make pagination a GET parameter, not part of the URL.
[xonotic/xonstat.git] / xonstat / templates / map_index.mako
index 3e155fb87bb42c8dfafd520dda24e49f0de4ada1..fe34956f18c4a247b710435470d4b40c81668862 100755 (executable)
@@ -14,26 +14,29 @@ Map Index
 <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
+<div class="row">\r
+  <div class="span6">\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 class="table table-bordered table-condensed">\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
+    <!-- navigation links -->\r
+    ${navlinks("map_index", maps.page, maps.last_page)}\r
+  </div> <!-- /span4 -->\r
+</div> <!-- /row -->\r