summaryrefslogtreecommitdiff
path: root/views/header.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-06 20:41:52 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-12 11:11:15 +0200
commita3ae62afd2eecb3831e2483f94d2db6a1d6bb748 (patch)
treeafab182f51b3769feb6c060a48e65513d09c7425 /views/header.pug
parentcce4df5b31627482ca1ce595223e4ae02800f0dc (diff)
downloadserver-a3ae62afd2eecb3831e2483f94d2db6a1d6bb748.tar.gz
Notification system improvements.
Enable webhook notification support with .env WEBHOOKS=1 Send notifications when invited to a game. Use notification "too soon" logic for webhooks as well. Try sending webhooks 3 times before giving up. Check if player is on the join page instead of the funky "offline" check when sending "your game is ready" notification. Only show mail/webhook notification settings if they are enabled.
Diffstat (limited to 'views/header.pug')
-rw-r--r--views/header.pug3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/header.pug b/views/header.pug
index 61f5250..c417665 100644
--- a/views/header.pug
+++ b/views/header.pug
@@ -4,7 +4,8 @@ header
nav
a(href="/about") About
if user
- a(href="/forum") Forum
+ if ENABLE_FORUM
+ a(href="/forum") Forum
a(href="/games/public") Public
if user.active > 0
a(href="/games/active") Games (#{user.active})