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/info.ejs | 80 ---------------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 views/info.ejs (limited to 'views/info.ejs') diff --git a/views/info.ejs b/views/info.ejs deleted file mode 100644 index 49625ed..0000000 --- a/views/info.ejs +++ /dev/null @@ -1,80 +0,0 @@ -<%- include('header', { title: title.title_name, refresh: (user ? 300 : 0) }) -%> - -<%- include('../public/' + title.title_id + '/about.html') -%> -

-Read more about the game on -boardgamegeek.com. - -

Open Games

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

-Create a new game. - -<% if (active_games.length > 0) { %> -

Active Games

- - -
IDScenarioPlayersDescriptionChangedTurn -<% active_games.forEach((row) => { %> -
<%= row.game_id %> -<%= 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) { %> -Play -<% } else { %> -Play -<% } %> -<% } else { %> -View -<% } %> -<% }); %> -
-<% } %> - -<% if (finished_games.length > 0) { %> -

Finished Games

- - -
IDScenarioPlayersDescriptionFinishedResult -<% finished_games.forEach((row) => { %> -
<%= row.game_id %> -<%= row.scenario %> -<%- row.player_names %> -<%= row.description %> -<%= row.mtime %> -<%= row.result %> -<% if (row.is_yours) { %> -<% if (row.is_shared) { %> -View -<% } else { %> -View -<% } %> -<% } else { %> -View -<% } %> -<% }); %> -
-<% } %> -- cgit v1.2.3