1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
9 % if p1 is not None and p2 is not None:
11 <div class="small-5 columns text-right">
12 <h3>${p1.nick_html_colors()|n}</h3>
15 <div class="small-2 columns text-center">
19 <div class="small-5 columns text-left">
20 <h3>${p2.nick_html_colors()|n}</h3>
25 <div class="small-5 columns text-right">
29 <div class="small-2 columns text-center">
33 <div class="small-5 columns text-left">
38 % if len(recent_games) > 0:
40 <div class="small-12 columns">
42 <table class="table table-hover table-condensed">
45 <th class="small-1 text-center"></th>
46 <th class="small-1">Type</th>
47 <th class="show-for-medium-up small-3">Server</th>
48 <th class="show-for-medium-up small-2">Map</th>
49 <th class="show-for-large-up small-2">Time</th>
50 <th class="small-3">Winner</th>
54 % for rg in recent_games:
56 <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
57 <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
58 <td class="show-for-medium-up no-stretch"><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>
59 <td class="show-for-medium-up"><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>
60 <td class="show-for-large-up"><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>
61 <td class="no-stretch">
62 % if rg.player_id > 2:
63 <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>
65 ${rg.nick_html_colors|n}</td>
78 <div class="small-12 large-8 large-offset-2 columns">
80 <form class="form-horizontal">
84 <div class="small-5 columns">
85 <div class="control-group">
86 <label class="control-label">Player #1</label>
87 <div class="controls">
88 <input id="p1" name="p1" type="text" class="input-xlarge">
93 <div class="small-2 columns text-center">
97 <div class="small-5 columns">
98 <div class="control-group">
99 <label class="control-label">Player #2</label>
100 <div class="controls">
101 <input id="p2" name="p2" type="text" class="input-xlarge">
109 <div class="control-group">
110 <label class="control-label"></label>
111 <div class="controls">
112 <button id="submit" name="submit" type="submit" class="btn btn-primary">Compare!</button>