//- vim:ts=4:sw=4:
doctype html
html
head
include head
title Profile
body
include header
article
h1 Profile
p Welcome, #{user.name}!
if who.about
p.box= who.about
p Member since #{human_date(who.ctime)}.
+userstats(who, ratings)
h3 Notifications
p Your mail address is #{user.mail}
if ENABLE_MAIL
if !mail.is_verified
p ⚠ Verify your mail address!
p You must verify your mail address before you can enable notifications.
else
if !mail.notify
p Enable mail notifications
if mail.notify
p Disable mail notifications
if ENABLE_WEBHOOKS
if !webhook
p Configure webhook
else if webhook.error
dl
dt Configure webhook
dd.error ERROR: #{webhook.error}
else
dl
dt Configure webhook
dd= new URL(webhook.url).hostname
h3 Account
p
| Change password
br
| Change mail address
br
| Change user name
br
| Change profile text
p
| Delete account
p
form(action="/account/logout" method="post")
button(type="submit") Logout