summaryrefslogtreecommitdiff
path: root/views/profile.pug
blob: 2437eb29ffecc5e1daa3fbcaeac4dfe14f8448e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//- vim:ts=4:sw=4:
doctype html
html
	head
		include head
		title= SITE_NAME
	body
		include header
		article
			h1= SITE_NAME

			p Welcome, #{user.name}!
			p Your mail address is #{user.mail}

			if ENABLE_MAIL
				if !user.is_verified
					p &#x26a0; <a href="/verify-mail">Verify your mail address</a>

				if user.notify
					p <a href="/unsubscribe">Disable mail notifications</a>
				else
					p <a href="/subscribe">Enable 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