summaryrefslogtreecommitdiff
path: root/views/user.pug
blob: 73c2e2daff18b9e61fb137087c9a2e3ddbf67466 (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
//- vim:ts=4:sw=4:
doctype html
html
	head
		include head
		title= who.name
	body
		include header
		article
			h1= who.name

			img.avatar(src=who.avatar width=80 height=80)

			if who.about
				p(style="white-space:pre-wrap;font-style:italic")= who.about
			else
				br(clear="left")

			p Member since #{who.ctime}.
			p Last seen #{who.atime}.
			if user
				p
					a(href="/message/send/"+who.name) Send message

			if active_games.length > 0
				h2 Playing
				+gamelist(active_games)

			if finished_games.length > 0
				h2 Recently finished
				+gamelist(finished_games)

			p <a href="/games/finished/#{who.name}">All #{who.name}'s finished games</a>