summaryrefslogtreecommitdiff
path: root/server.js
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 /server.js
parent67529b69ff666397886fa48403d76954c8bc6f9c (diff)
downloadserver-b8b68ed6e4c886f47b59b404d44e433251f36606.tar.gz
Add link to public games in header.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/server.js b/server.js
index 9cc2a9c..d3de0db 100644
--- a/server.js
+++ b/server.js
@@ -1065,7 +1065,6 @@ app.get('/games/active', must_be_logged_in, function (req, res) {
let active_games = games.filter(game => game.status === 1);
let finished_games = games.filter(game => game.status === 2);
res.render('games_active.pug', {
- title: "Your Active Games",
user: req.user,
open_games: open_games.filter(g => !g.is_ready),
ready_games: open_games.filter(g => g.is_ready),
@@ -1079,7 +1078,6 @@ app.get('/games/finished', must_be_logged_in, function (req, res) {
let games = QUERY_LIST_FINISHED_GAMES_OF_USER.all({user_id: req.user.user_id});
annotate_games(games, req.user.user_id);
res.render('games_finished.pug', {
- title: "Your Finished Games",
user: req.user,
finished_games: games,
});