From b8b68ed6e4c886f47b59b404d44e433251f36606 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 10 Apr 2022 13:25:02 +0200 Subject: Add link to public games in header. --- server.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'server.js') 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, }); -- cgit v1.2.3