//- vim:ts=4:sw=4: doctype html html head include head title Profile body include header article h1= SITE_NAME p Welcome, <a class="black" href="/user/#{user.name}">#{user.name}</a>! p Your mail address is #{user.mail} if ENABLE_MAIL if !user.is_verified p ⚠ <a href="/verify-mail">Verify your mail address!</a> p You must verify your mail address before you can enable notifications. else if !user.notify p <a href="/subscribe">Enable mail notifications</a> if user.notify p <a href="/unsubscribe">Disable mail notifications</a> p | <a href="/change-password">Change password</a> br | <a href="/change-mail">Change mail address</a> br | <a href="/change-name">Change user name</a> br | <a href="/change-about">Change profile text</a> br | <a href="/delete-account">Delete account</a> if ENABLE_WEBHOOKS 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 form(action="/logout" method="post") button(type="submit") Logout