summaryrefslogtreecommitdiff
path: root/views/rematch.pug
blob: 09df6ec871e7047c52c862061978ba7f44179024 (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
50
51
52
53
54
55
//- vim:ts=4:sw=4:
doctype html
html
	head
		include head
		title= title.title_name
	body
		include header
		article
			if game.scenario === "Standard"
				h1 #{title.title_name}
			else
				h1 #{title.title_name} - #{game.scenario}

			div.logo
				+gamecover(title.title_id)

			p Suggest rematch with
				each p, i in players
					if i > 0 && players.length > 2
						| ,
					if i === players.length - 1
						|
						| and
					|
					| <a href="#{p.name}">#{p.name}</a>
				| ?

			form(method="post" action="/rematch/"+game.game_id)
				p Player roles:
					if title.is_symmetric
						br
						label
							input(type="radio" name="order" value="keep")
							| Keep
						br
						label
							input(type="radio" name="order" value="random" checked)
							| Random
					else
						br
						label
							input(type="radio" name="order" value="swap" checked)
							| Swap
						br
						label
							input(type="radio" name="order" value="keep")
							| Keep
						br
						label
							input(type="radio" name="order" value="random")
							| Random

				p
					button(type="submit") Rematch