]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/game_index.mako
Applied Xonotic HTML/CSS/JS theme and worked existing HTML/CSS
[xonotic/xonstat.git] / xonstat / templates / game_index.mako
index 06086b28ad9fcd404429dfe0016eab2619ad081b..a1cf8f608d796068c2bbd630c699d865b8cc5de3 100755 (executable)
@@ -5,27 +5,17 @@
 Game Index - ${parent.title()}\r
 </%block>\r
 \r
-<%block name="js">\r
-${parent.js()}\r
-<script type="text/javascript" src="${request.static_url('xonstat:static/js/jquery.js')}"></script>\r
-<script type="text/javascript" src="${request.static_url('xonstat:static/js/jquery.dataTables.min.js')}"></script>\r
-<script>\r
-$(document).ready(function() { $('.scoreboard').dataTable(); } );\r
-</script>\r
-</%block>\r
-\r
 % if not games:\r
 <h2>Sorry, no games yet. Get playing!</h2>\r
 \r
 % else:\r
 <h2>Recent Games</h2>\r
 % for (game, server, map) in games:\r
-\r
-<p>\r
-   <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a> on <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a> (<a href="${request.route_url('game_info', id=game.game_id)}" name="Permalink for game #${game.game_id}">permalink</a> for this game):\r
+<div class="game">\r
+       <h3><a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a> on <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a> <span class="permalink">(<a href="${request.route_url('game_info', id=game.game_id)}" name="Permalink for game #${game.game_id}">permalink</a>)</span></h3>\r
 ## show scoreboard using a def from another file\r
 ${scoreboard(game.game_type_cd, pgstats[game.game_id])}\r
-</p>\r
+</div>\r
 \r
 % endfor\r
 % endif\r