From 0d0dab23fb0ecf16a2abf54295746d7dbd87c2d7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 10 Nov 2021 22:27:46 +0100 Subject: Massive SQL cleanup. --- views/games.ejs | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'views/games.ejs') diff --git a/views/games.ejs b/views/games.ejs index b74dbba..acb94b6 100644 --- a/views/games.ejs +++ b/views/games.ejs @@ -1,40 +1,37 @@ <%- include('header', { title: "All Public Games", refresh: (user ? 300 : 0) }) %> -

Open

- +
-
IDTitleScenarioPlayersDescriptionCreated <% if (open_games.length > 0) { %> <% open_games.forEach((row) => { %>
<%= row.game_id %> -<%= row.title_name %> -<%= row.scenario %> -<%- row.player_names || row.owner_name %> -<%= row.description %> -<%= row.ctime %> -Join +<%= row.game_id %> +<%= row.title_name %> +<%= row.scenario %> +<%- row.player_names || row.owner_name %> +<%= row.description %> +<%= row.ctime %> +Join <% }); } else { %>
No open games. <% } %>

Active

- +
-
IDTitleScenarioPlayersDescriptionChangedActive <% if (active_games.length > 0) { %> <% active_games.forEach((row) => { %>
<%= row.game_id %> -<%= row.title_name %> -<%= row.scenario %> -<%- row.player_names %> -<%= row.description %> -<%= row.mtime %> -"><%= row.active_role %> -Enter +<%= row.game_id %> +<%= row.title_name %> +<%= row.scenario %> +<%- row.player_names %> +<%= row.description %> +<%= row.mtime %> +"><%= row.active %> +Enter <% }); } else { %>
No active games. <% } %> -- cgit v1.2.3