1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
11 <link href="/static/css/sprites.css" rel="stylesheet">
18 ##### ROW OF GAME TYPE ICONS #####
20 <div class="small-12 columns">
22 % for gt, url in game_type_links:
24 % if game_type_cd == gt or (game_type_cd is None and gt == 'overall'):
29 <a href="${url}" alt="${gt}" title="Show only ${gt} games">
30 <span class="sprite sprite-${gt}"> </span><br />
40 ##### RECENT GAMES TABLE #####
43 % if len(recent_games) > 0:
44 <table class="table table-hover table-condensed">
56 % for rg in recent_games:
58 <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
59 <td class="tdcenter"><span alt="${rg.game_type_cd}" class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
60 <td><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
61 <td><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
62 <td><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
64 % if rg.player_id > 2:
65 <a href="${request.route_url('player_info', id=rg.player_id)}" title="Go to the player info page for this player">${rg.nick_html_colors|n}</a></td>
67 ${rg.nick_html_colors|n}</td>
74 <h2>No more games to show!</h2>
76 </div> <!-- /span12 -->
79 % if len(recent_games) == 20:
81 <div class="span12 text-center">
82 <ul class="pagination">
84 <a href="${request.route_url('game_index', _query=query)}" name="Next Page">Next <i class="glyphicon glyphicon-arrow-right"></i></a>