1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
5 <%block name="navigation">
13 % if p1 is not None and p2 is not None:
15 <div class="small-5 columns text-right">
16 <h3>${p1.nick_html_colors()|n}</h3>
19 <div class="small-2 columns text-center">
23 <div class="small-5 columns text-left">
24 <h3>${p2.nick_html_colors()|n}</h3>
29 <div class="small-5 columns text-right">
33 <div class="small-2 columns text-center">
37 <div class="small-5 columns text-left">
42 % if len(recent_games) > 0:
44 <div class="small-12 columns">
46 <table class="table table-hover table-condensed">
49 <th class="small-1 text-center"></th>
50 <th class="small-1">Type</th>
51 <th class="show-for-medium-up small-3">Server</th>
52 <th class="show-for-medium-up small-2">Map</th>
53 <th class="show-for-large-up small-2">Time</th>
54 <th class="small-3">Winner</th>
58 % for rg in recent_games:
60 <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>
61 <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
62 <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>
63 <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>
64 <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>
65 <td class="no-stretch">
66 % if rg.player_id > 2:
67 <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>
69 ${rg.nick_html_colors|n}</td>
82 <div class="small-12 large-8 large-offset-2 columns">
84 <form class="form-horizontal">
88 <div class="small-5 columns">
89 <div class="control-group">
90 <label class="control-label">Player #1</label>
91 <div class="controls">
92 <input id="p1" name="p1" type="text" class="input-xlarge">
97 <div class="small-2 columns text-center">
101 <div class="small-5 columns">
102 <div class="control-group">
103 <label class="control-label">Player #2</label>
104 <div class="controls">
105 <input id="p2" name="p2" type="text" class="input-xlarge">
113 <div class="control-group">
114 <label class="control-label"></label>
115 <div class="controls">
116 <button id="submit" name="submit" type="submit" class="btn btn-primary">Compare!</button>