]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/templates/game_index.mako
Add navlinks to the other index pages.
[xonotic/xonstat.git] / xonstat / templates / game_index.mako
index 7bf9a5458e5cb7fe717dc64028abe98251907bc5..7a369a35ee6f9ca8d6c2ca11ba1fdf7b223e59b7 100755 (executable)
@@ -1,5 +1,6 @@
 <%inherit file="base.mako"/>\r
 <%namespace file="scoreboard.mako" import="scoreboard" />\r
+<%namespace file="navlinks.mako" import="navlinks" />\r
 \r
 <%block name="title">\r
 Game Index - ${parent.title()}\r
@@ -36,12 +37,10 @@ Game Index - ${parent.title()}
        ${scoreboard(game.game_type_cd, pgstats[game.game_id])}\r
        </div>\r
 % endfor\r
+\r
+<!-- navigation links -->\r
+${navlinks("game_index_paged", games.page, games.last_page)}\r
+\r
 </div><!-- #recent-games-list -->\r
 % endif\r
 \r
-% if games.previous_page:\r
-<a href="${request.route_url("game_index_paged", page=games.previous_page)}" name="Previous Page">Previous</a>\r
-% endif\r
-% if games.next_page:\r
-<a href="${request.route_url("game_index_paged", page=games.next_page)}" name="Next Page">Next</a>\r
-% endif\r