bit improved index page

This commit is contained in:
Zutatensuppe 2021-04-20 20:52:31 +02:00
parent f5a93f1f57
commit 7a957ca09c
4 changed files with 58 additions and 20 deletions

View file

@ -113,7 +113,8 @@ app.use('/', async (req, res, next) => {
]
res.send(await render('index.html.twig', {
games,
gamesRunning: games.filter(g => !g.finished),
gamesFinished: games.filter(g => !!g.finished),
images: allImages(),
}))
} else {