summaryrefslogtreecommitdiff
path: root/views/profile.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-06 20:25:36 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:25:36 +0200
commit644c287eede443c608eeab0cc6cd41da228947e3 (patch)
tree2bf71850e6afe5c954515edcc110f7c91cf6d7f2 /views/profile.pug
parent2d22fd6f23e2afe24b64e4b8ab09bf1b5404e3e4 (diff)
downloadserver-644c287eede443c608eeab0cc6cd41da228947e3.tar.gz
Remove "api" prefix on many routes.
Diffstat (limited to 'views/profile.pug')
-rw-r--r--views/profile.pug27
1 files changed, 15 insertions, 12 deletions
diff --git a/views/profile.pug b/views/profile.pug
index de6e5c4..2f9218d 100644
--- a/views/profile.pug
+++ b/views/profile.pug
@@ -18,7 +18,7 @@ html
+userstats(who, ratings)
- h3 Account
+ h3 Notifications
p Your mail address is #{user.mail}
@@ -32,17 +32,6 @@ html
if mail.notify
p <a href="/account/mail/unsubscribe">Disable mail notifications</a>
- p
- | <a href="/account/change-password">Change password</a>
- br
- | <a href="/account/change-mail">Change mail address</a>
- br
- | <a href="/account/change-name">Change user name</a>
- br
- | <a href="/account/change-about">Change profile text</a>
- p
- | <a href="/account/delete">Delete account</a>
-
if ENABLE_WEBHOOKS
if !webhook
p <a href="/account/webhook">Configure webhook</a>
@@ -55,6 +44,20 @@ html
dt <a href="/account/webhook">Configure webhook</a>
dd= new URL(webhook.url).hostname
+ h3 Account
+
+ p
+ | <a href="/account/change-password">Change password</a>
+ br
+ | <a href="/account/change-mail">Change mail address</a>
+ br
+ | <a href="/account/change-name">Change user name</a>
+ br
+ | <a href="/account/change-about">Change profile text</a>
+
+ p
+ | <a href="/account/delete">Delete account</a>
+
p
form(action="/account/logout" method="post")
button(type="submit") Logout