summaryrefslogtreecommitdiff
path: root/views/profile.pug
blob: 99c8f16bcfa5ef1fdc007888232b35771933f09b (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
//- 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 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 !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 <a href="/chat">Chat log</a>

			p
				form(action="/logout" method="post")
					button(type="submit") Logout