//- vim:ts=4:sw=4:
doctype html
html
head
include head
title= SITE_NAME
if active_games.length > 0
meta(http-equiv="refresh" content=300)
body
include header
article
h1 Your games
if ready_games.length > 0
h2 Ready to start
+gamelist(ready_games)
if open_games.length > 0
h2 Open
+gamelist(open_games)
if replacement_games.length > 0
h2 Need replacement
+gamelist(replacement_games)
if active_games.length > 0
h2 Active
+gamelist(active_games)
if finished_games.length > 0
h2 Recently finished
+gamelist(finished_games)
p All your finished games
if open_games.length === 0 && ready_games.length === 0 && active_games.length === 0 && finished_games.length === 0
p Nothing here.