]> git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/game_finder.mako
Add Arc to the accuracy table.
[xonotic/xonstat.git] / xonstat / templates / game_finder.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3 <%namespace file="navlinks.mako" import="navlinks" />
4
5 <%block name="navigation">
6 ${nav.nav('games')}
7 </%block>
8
9 <%block name="title">
10 Game Index
11 </%block>
12
13 ##### ROW OF GAME TYPE ICONS #####
14 <div class="row">
15   <div class="small-12 columns">
16     <ul class="tabs">
17       % for gt, url in game_type_links:
18         <li class="text-center tab-title
19           % if game_type_cd == gt or (game_type_cd is None and gt == 'overall'):
20             active
21           % endif
22           "
23         >
24           <a href="${url}" alt="${gt}" title="Show only ${gt} games">
25             <span class="sprite sprite-${gt}"> </span><br />
26             ${gt} <br />
27           </a>
28         </li>
29       % endfor
30     </ul>
31     <br />
32   </div>
33 </div>
34
35 ##### RECENT GAMES TABLE #####
36 <div class="row">
37   <div class="small-12 columns">
38     % if len(recent_games) > 0:
39     <table class="table-hover table-condensed">
40       <thead>
41         <tr>
42           <th class="small-1 text-center"></th>
43           <th class="small-1">Type</th>
44           <th class="show-for-medium-up small-3">Server</th>
45           <th class="show-for-medium-up small-2">Map</th>
46           <th class="show-for-large-up small-2">Time</th>
47           <th class="small-3">Winner</th>
48         </tr>
49       </thead>
50       <tbody>
51       % for rg in recent_games:
52         <tr>
53           <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>
54           <td class="text-center"><i class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_descr}"></i></td>
55           <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>
56           <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>
57           <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>
58           <td class="no-stretch">
59             % if rg.player_id > 2:
60             <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>
61             % else:
62             ${rg.nick_html_colors|n}</td>
63             % endif
64         </tr>
65         % endfor
66         </tbody>
67     </table>
68     % else:
69     <h2>No more games to show!</h2>
70     % endif
71   </div>
72 </div>
73
74 % if len(recent_games) == 20:
75 <div class="row">
76   <div class="small-12 columns">
77     <ul class="pagination">
78       <li>
79         <a  href="${request.route_url('game_index', _query=query)}" name="Next Page">Next <i class="fa fa-arrow-right"></i></a>
80       </li>
81     </ul>
82   </div>
83 </div>
84 % endif