diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-21 12:29:28 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-21 12:29:28 +0200 |
commit | 419b6653b5177e599558991aaa6dbe71803a0f87 (patch) | |
tree | 5bdae749f1b44e1525c122fb983fe78aa0cacecb /views/user.pug | |
parent | 2d1c2728bece17648328aa7de4e74b369edd792c (diff) | |
download | server-419b6653b5177e599558991aaa6dbe71803a0f87.tar.gz |
Use env to control presence of tournaments.
Diffstat (limited to 'views/user.pug')
-rw-r--r-- | views/user.pug | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/user.pug b/views/user.pug index f3a30f0..fc55b42 100644 --- a/views/user.pug +++ b/views/user.pug @@ -65,7 +65,8 @@ html +gamelist(finished_games) p <a href="/games/finished/#{who.name}">All #{who.name}'s finished games</a> - p <a href="/tm/finished/#{who.name}">All #{who.name}'s finished tournaments</a> + if ENABLE_TOURNAMENTS + p <a href="/tm/finished/#{who.name}">All #{who.name}'s finished tournaments</a> if user && user.user_id === 1 if who.is_banned |