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/about.ejs | 3 +++ views/join.ejs | 3 +++ 2 files changed, 6 insertions(+) (limited to 'views') 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.
  • The button lights up if you have unread chat messages. +
  • +The button appears when the game is over, and can be used to quickly start a rematch. +

    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