From 8586c9aa9e44f04b7875ca81cf307e417414cd82 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 7 Dec 2011 21:03:37 -0500 Subject: [PATCH] Add navlinks to the other index pages. --- xonstat/templates/game_index.mako | 11 +++++------ xonstat/templates/map_index.mako | 9 +++------ xonstat/templates/server_index.mako | 9 +++------ 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/xonstat/templates/game_index.mako b/xonstat/templates/game_index.mako index 7bf9a54..7a369a3 100755 --- a/xonstat/templates/game_index.mako +++ b/xonstat/templates/game_index.mako @@ -1,5 +1,6 @@ <%inherit file="base.mako"/> <%namespace file="scoreboard.mako" import="scoreboard" /> +<%namespace file="navlinks.mako" import="navlinks" /> <%block name="title"> Game Index - ${parent.title()} @@ -36,12 +37,10 @@ Game Index - ${parent.title()} ${scoreboard(game.game_type_cd, pgstats[game.game_id])} % endfor + + +${navlinks("game_index_paged", games.page, games.last_page)} + % endif -% if games.previous_page: -Previous -% endif -% if games.next_page: -Next -% endif diff --git a/xonstat/templates/map_index.mako b/xonstat/templates/map_index.mako index 7598a4d..13eaf4c 100755 --- a/xonstat/templates/map_index.mako +++ b/xonstat/templates/map_index.mako @@ -1,4 +1,5 @@ <%inherit file="base.mako"/> +<%namespace file="navlinks.mako" import="navlinks" /> <%block name="title"> Map Index - ${parent.title()} @@ -21,9 +22,5 @@ Map Index - ${parent.title()} % endif -% if maps.previous_page: -Previous -% endif -% if maps.next_page: -Next -% endif + +${navlinks("map_index_paged", maps.page, maps.last_page)} diff --git a/xonstat/templates/server_index.mako b/xonstat/templates/server_index.mako index dd67c24..a859023 100755 --- a/xonstat/templates/server_index.mako +++ b/xonstat/templates/server_index.mako @@ -1,4 +1,5 @@ <%inherit file="base.mako"/> +<%namespace file="navlinks.mako" import="navlinks" /> <%block name="title"> Map Index - ${parent.title()} @@ -23,9 +24,5 @@ Map Index - ${parent.title()} % endif -% if servers.previous_page: -Previous -% endif -% if servers.next_page: -Next -% endif + +${navlinks("server_index_paged", servers.page, servers.last_page)} -- 2.39.2