forked from nicolaschan/mines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
games.pug
37 lines (36 loc) · 1.31 KB
/
games.pug
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
doctype html
html
head
meta(charset='UTF-8')
meta(name='google', content='notranslate')
meta(http-equiv='Content-Language', content='en')
link(rel='icon', type='image/png', href='/favicon.png')
link(rel='stylesheet', type='text/css', href='https://fonts.googleapis.com/css?family=Roboto+Mono')
link(href="https://fonts.googleapis.com/icon?family=Material+Icons", rel="stylesheet")
link(rel='stylesheet', type='text/css', href='/materialize.min.css')
link(rel='stylesheet', type='text/css', href='/style.css')
script(src='/jquery.min.js')
script(src='/js.cookie.js')
script(src='/socket.io.js')
script(src='/materialize.min.js')
//script(src='/games.js')
title Select Game
body
.container
h1 Select a game
a(href='/new') or create a new one
table.highlight
thead
tr
th Game Name
th Dimensions
th Players
th Link
tbody
each game, gameId in Games.getAvailableGames()
tr
td= game.name
td= game.getBoard().width + ' by ' + game.getBoard().height + ' with ' + game.getBoard().mines + ' mines'
td= game.numberOfConnectedPlayers() + ' playing'
td
a(href='/?g=' + game.gameId)= '?g=' + game.gameId