]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/player_index.mako
Add server index and template. Fix links on player index and template.
[xonotic/xonstat.git] / xonstat / templates / player_index.mako
1 <%inherit file="base.mako"/>\r
2 \r
3 <%block name="title">\r
4 Player Index - ${parent.title()}\r
5 </%block>\r
6 \r
7 % if not players:\r
8 <h2>Sorry, no players yet. Get playing!</h2>\r
9 \r
10 % else:\r
11 <h2>Player Index</h2>\r
12 <table border="1">\r
13   <tr>\r
14     <th>#</th>\r
15     <th>Nick</th>\r
16     <th>Joined</th>\r
17   </tr>\r
18 % for player in players:\r
19   <tr>\r
20     <td>${player.player_id}</th>\r
21     <td><a href="${request.route_url("player_info", id=player.player_id)}" title="Go to this player's info page">${player.nick_html_colors()}</a></th>\r
22     <td>${player.create_dt.strftime('%m/%d/%Y at %H:%M')}</th>\r
23   </tr>\r
24 % endfor\r
25 </table>\r
26 % endif\r
27 \r
28 % if players.previous_page:\r
29 <a href="${request.route_url("player_index_paged", page=players.previous_page)}" name="Previous Page">Previous</a>\r
30 % endif\r
31 % if players.next_page:\r
32 <a href="${request.route_url("player_index_paged", page=players.next_page)}" name="Next Page">Next</a>\r
33 % endif\r