-
Notifications
You must be signed in to change notification settings - Fork 0
/
menus.html
74 lines (69 loc) · 1.46 KB
/
menus.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template name="MenuLayout">
{{> babylonCanvas}}
<div class="gui">
{{#if currentUser}}
{{> loginButtons}}
{{/if}}
{{> yield}}
</div>
</template>
<template name="Login">
<div class="menu">
{{> loginButtons}}
</div>
</template>
<template name="Home">
<div class="menu">
<div class="btns-zone">
<button class="menu-btn btn-create">
Create
</button>
<button class="menu-btn btn-join">
Join
</button>
</div>
</div>
</template>
<template name="CreateRound">
<div class="menu">
<div class="create-zone">
<span>
Game name :
</span>
<input name="round-name" class="input-field" value="{{proposedName}}"/><br>
<span>
Number of players :
</span>
<input name="nb-players" class="input-field"/><br>
<button class="menu-btn btn-start">Start</button>
</div>
</div>
</template>
<template name="JoinRound">
<div class="menu">
<div class="room-zone">
<table BORDER="1">
<TR>
<TH>Game</TH>
<TH>Players</TH>
<TH>Join</TH>
</TR>
{{#each openRounds}}
<TR>
<TD>{{name}}</TD>
<TD>{{length user_ids}} / {{nb_users}}</TD>
<TD>
{{#if canLeave}}
<button class="btn-round round-leave">Leave</button>
{{else}}
{{#if canJoin}}
<button class="btn-round round-join">Join</button>
{{/if}}
{{/if}}
</TD>
</TR>
{{/each}}
</table>
</div>
</div>
</template>