From a1fe768c6d40c7c885db1c9843c61527cbe583e3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 20 Nov 2021 19:47:08 +0100 Subject: Rewrite view templates to use Pug engine. --- views/games.ejs | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 views/games.ejs (limited to 'views/games.ejs') diff --git a/views/games.ejs b/views/games.ejs deleted file mode 100644 index 90b2f68..0000000 --- a/views/games.ejs +++ /dev/null @@ -1,51 +0,0 @@ -<%- 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.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 %> -<% if (row.is_active) { %> -<%= row.active %> -<% } else { %> -<%= row.active %> -<% } %> -<% if (row.is_yours) { %> -<% if (row.is_shared) { %> -View -<% } else { %> -View -<% } %> -<% } else { %> -View -<% } %> -<% }); %> -<% } else { %> -
No active games. -<% } %> -
-- cgit v1.2.3