%inherit file="base.mako"/>
<%namespace file="scoreboard.mako" import="scoreboard" />
<%block name="title">
Game Index - ${parent.title()}
%block>
% if not games:
Sorry, no games yet. Get playing!
% else:
Recent Games
% for (game, server, map) in games:
## show scoreboard using a def from another file
${scoreboard(game.game_type_cd, pgstats[game.game_id])}
% endfor
% endif
% if games.previous_page:
Previous
% endif
% if games.next_page:
Next
% endif