summaryrefslogtreecommitdiff
path: root/views/games_active.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-21 12:29:28 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-21 12:29:28 +0200
commit419b6653b5177e599558991aaa6dbe71803a0f87 (patch)
tree5bdae749f1b44e1525c122fb983fe78aa0cacecb /views/games_active.pug
parent2d1c2728bece17648328aa7de4e74b369edd792c (diff)
downloadserver-419b6653b5177e599558991aaa6dbe71803a0f87.tar.gz
Use env to control presence of tournaments.
Diffstat (limited to 'views/games_active.pug')
-rw-r--r--views/games_active.pug13
1 files changed, 7 insertions, 6 deletions
diff --git a/views/games_active.pug b/views/games_active.pug
index 7da3b26..ee9687f 100644
--- a/views/games_active.pug
+++ b/views/games_active.pug
@@ -26,10 +26,10 @@ html
p
a(href="/create") Create a new game
- +tourlist(seeds, active_pools, finished_pools)
-
- p
- a(href="/tm/list") Join a tournament
+ if ENABLE_TOURNAMENTS
+ +tourlist(seeds, active_pools, finished_pools)
+ p
+ a(href="/tm/list") Join a tournament
if move_games.length > 0
h2 Move
@@ -53,5 +53,6 @@ html
p
a(href="/games/finished") All your finished games
- br
- a(href="/tm/finished") All your finished tournaments
+ if ENABLE_TOURNAMENTS
+ br
+ a(href="/tm/finished") All your finished tournaments