summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/games_active.pug4
-rw-r--r--views/games_public.pug4
-rw-r--r--views/info.pug10
-rw-r--r--views/join.pug2
4 files changed, 16 insertions, 4 deletions
diff --git a/views/games_active.pug b/views/games_active.pug
index 342c673..49d20d8 100644
--- a/views/games_active.pug
+++ b/views/games_active.pug
@@ -19,6 +19,10 @@ html
h2 Open
+gametable(0,open_games)
+ if replacement_games.length > 0
+ h2 Need replacement
+ +gametable(0, replacement_games)
+
if active_games.length > 0
h2 Active
+gametable(1,active_games)
diff --git a/views/games_public.pug b/views/games_public.pug
index 267c8f7..4af36bd 100644
--- a/views/games_public.pug
+++ b/views/games_public.pug
@@ -14,6 +14,10 @@ html
h2 Open
+gametable(0, open_games)
+ if replacement_games.length > 0
+ h2 Need replacement
+ +gametable(0, replacement_games)
+
if ready_games.length > 0
h2 Ready to start
+gametable(0, ready_games)
diff --git a/views/info.pug b/views/info.pug
index 47367ab..785ee91 100644
--- a/views/info.pug
+++ b/views/info.pug
@@ -19,9 +19,13 @@ html
p Read more about the game on #[a(href="https://boardgamegeek.com/boardgame/"+title.bgg) boardgamegeek.com].
- h2 Open games
+ h2 Open
+gametable(0,open_games,1)
+ if replacement_games.length > 0
+ h2 Need replacement
+ +gametable(0, replacement_games)
+
p
a(href="/create/"+title.title_id) Create a new game
@@ -30,9 +34,9 @@ html
+gametable(0,ready_games,1)
if active_games.length > 0
- h2 Active games
+ h2 Active
+gametable(1,active_games,1)
if finished_games.length > 0
- h2 Finished games
+ h2 Finished
+gametable(2,finished_games,1)
diff --git a/views/join.pug b/views/join.pug
index 8232645..e195bf9 100644
--- a/views/join.pug
+++ b/views/join.pug
@@ -58,4 +58,4 @@ html
p
button.hide#delete_button(onclick="confirm_delete()") Delete
- button.hide#start_button(onclick=`javascript:send('/start/${game.game_id}')` disabled) Start
+ button.hide#start_button(onclick="start()" disabled) Start