<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
<%namespace file="navlinks.mako" import="navlinks" />
+<%block name="navigation">
+${nav.nav('games')}
+</%block>
+
<%block name="css">
${parent.css()}
<link href="/static/css/sprites.css" rel="stylesheet">
</%block>
+<%block name="title">
+Game Index
+</%block>
+
% if len(recent_games) > 0:
+
+##### ROW OF GAME TYPE ICONS #####
+<div class="row">
+ <div class="span12 tabbable">
+ <ul class="nav nav-tabs">
+ % for gt in ('overall','duel','ctf','dm','tdm','ca','kh','ft','lms','as','dom','nb','cts','rc'):
+ <li
+ % if game_type_cd == gt or (game_type_cd is None and gt == 'overall'):
+ class="active"
+ % endif
+ >
+
+ % if gt == 'overall':
+ <a href="${request.route_url("game_index")}" alt="${gt}" title="" data-toggle="none">
+ % else:
+ <a href="${request.route_url("game_index", _query={'type':gt})}" alt="${gt}" title="" data-toggle="none">
+ % endif
+ <span class="sprite sprite-${gt}"> </span><br />
+ ${gt} <br />
+ </a>
+ </li>
+ % endfor
+ </ul>
+ <br />
+ </div>
+</div>
+
+##### RECENT GAMES TABLE #####
<div class="row">
<div class="span12">
- <h3>Recent Games</h3>
- <table class="table table-bordered table-condensed">
+ <table class="table table-hover table-condensed">
<thead>
<tr>
<th></th>
</div> <!-- /row -->
<!-- navigation links -->
-${navlinks("game_finder", recent_games.page, recent_games.last_page, search_query=query)}
+${navlinks("game_index", recent_games.page, recent_games.last_page, search_query=query)}
% endif