summaryrefslogtreecommitdiff
path: root/views/games_active.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-10 13:25:02 +0200
committerTor Andersson <tor@ccxvii.net>2022-04-15 14:34:52 +0200
commitb8b68ed6e4c886f47b59b404d44e433251f36606 (patch)
treefe92950d3bdd57e1a1a6b9fb79311cae5131be60 /views/games_active.pug
parent67529b69ff666397886fa48403d76954c8bc6f9c (diff)
downloadserver-b8b68ed6e4c886f47b59b404d44e433251f36606.tar.gz
Add link to public games in header.
Diffstat (limited to 'views/games_active.pug')
-rw-r--r--views/games_active.pug7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/games_active.pug b/views/games_active.pug
index 768a92d..342c673 100644
--- a/views/games_active.pug
+++ b/views/games_active.pug
@@ -3,13 +3,13 @@ doctype html
html
head
include head
- title= title
+ title= SITE_NAME
if active_games.length > 0
meta(http-equiv="refresh" content=300)
body
include header
article
- h1= title
+ h1 Your games
if ready_games.length > 0
h2 Ready to start
@@ -23,11 +23,12 @@ html
h2 Active
+gametable(1,active_games)
+
if finished_games.length > 0
h2 Recently finished
+gametable(2,finished_games)
- p <a href="/games/finished">All finished games</a>
+ p <a href="/games/finished">All your finished games</a>
if open_games.length === 0 && ready_games.length === 0 && active_games.length === 0 && finished_games.length === 0
p Nothing here.