diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-14 17:19:10 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-01 21:13:55 +0100 |
commit | 0dcf5df6d0197635ee3a6c837c21022e630f657f (patch) | |
tree | 6c3fc02c80e1c07555fd1394234a4107e0772884 /views/profile.pug | |
parent | 2ebdd020dd83d85b5437189ed12595f6ae781262 (diff) | |
download | server-0dcf5df6d0197635ee3a6c837c21022e630f657f.tar.gz |
Add Webhook notifications.
Diffstat (limited to 'views/profile.pug')
-rw-r--r-- | views/profile.pug | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/profile.pug b/views/profile.pug index 7ed8eff..99c8f16 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -28,6 +28,17 @@ html br | <a href="/delete-account">Delete account</a> + if !user.webhook + p <a href="/webhook">Configure webhook</a> + else if user.webhook.error + dl + dt <a href="/webhook">Configure webhook</a> + dd.error ERROR: #{user.webhook.error} + else + dl + dt <a href="/webhook">Configure webhook</a> + dd= new URL(user.webhook.url).hostname + p <a href="/chat">Chat log</a> p |