From 143c403dc051453d44735d53f4477f1caa74a202 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 May 2025 10:50:22 +0200 Subject: Put account management pages under "/account" URL prefix. --- views/profile.pug | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'views/profile.pug') diff --git a/views/profile.pug b/views/profile.pug index 4ecf289..39f1977 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -13,38 +13,38 @@ html p Your mail address is #{user.mail} if ENABLE_MAIL - if !user.is_verified - p ⚠ Verify your mail address! + if !mail.is_verified + p ⚠ Verify your mail address! p You must verify your mail address before you can enable notifications. else - if !user.notify - p Enable mail notifications - if user.notify - p Disable mail notifications + if !mail.notify + p Enable mail notifications + if mail.notify + p Disable mail notifications p - | Change password + | Change password br - | Change mail address + | Change mail address br - | Change user name + | Change user name br - | Change profile text + | Change profile text br - | Delete account + | Delete account if ENABLE_WEBHOOKS - if !user.webhook - p Configure webhook - else if user.webhook.error + if !webhook + p Configure webhook + else if webhook.error dl - dt Configure webhook - dd.error ERROR: #{user.webhook.error} + dt Configure webhook + dd.error ERROR: #{webhook.error} else dl - dt Configure webhook - dd= new URL(user.webhook.url).hostname + dt Configure webhook + dd= new URL(webhook.url).hostname p - form(action="/logout" method="post") + form(action="/account/logout" method="post") button(type="submit") Logout -- cgit v1.2.3