From 1ee47cf90e0ee8442bdaba2ed10bedabf39d0db5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 15 Jun 2021 17:52:18 +0200 Subject: Add "Rematch" button for easier repeat match making. --- views/join.ejs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'views/join.ejs') 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)) { + %>
<% + } if (game.owner_id == user.user_id && (game.status == 0 || solo)) { %>


<% } -- cgit v1.2.3