diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/about.ejs | 3 | ||||
-rw-r--r-- | views/join.ejs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/views/about.ejs b/views/about.ejs index 8478301..fca63e0 100644 --- a/views/about.ejs +++ b/views/about.ejs @@ -52,6 +52,9 @@ see more of the map. <li> The <img src="/images/chat-bubble.svg"> button lights up if you have unread chat messages. +<li> +The <img src="/images/cycle.svg"> button appears when the game is over, and can be used to quickly start a rematch. + </ul> <h2> diff --git a/views/join.ejs b/views/join.ejs index 42feaaf..2da5f03 100644 --- a/views/join.ejs +++ b/views/join.ejs @@ -81,6 +81,9 @@ Description: <%= game.description || "No description." %> %>Waiting for players to join the game.<% } } + if (game.status == 2 && players.some(p => p.user_id == user.user_id)) { + %><form action="/rematch/<%= game.game_id %>"><button type="submit">Rematch</button></form><% + } if (game.owner_id == user.user_id && (game.status == 0 || solo)) { %><p><br><button onclick="confirm_delete()">Delete</button><% } |