summaryrefslogtreecommitdiff
path: root/views/join.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/join.ejs')
-rw-r--r--views/join.ejs3
1 files changed, 3 insertions, 0 deletions
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><%
}