From 1a71184bcbf714d266e80d186fd666d393ed5981 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 19 Nov 2021 02:45:51 +0100 Subject: Clean up stylesheets. Don't show options in game lists. --- views/info.ejs | 120 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 58 insertions(+), 62 deletions(-) (limited to 'views/info.ejs') diff --git a/views/info.ejs b/views/info.ejs index 4a515ff..49625ed 100644 --- a/views/info.ejs +++ b/views/info.ejs @@ -1,84 +1,80 @@ -<%- include('header', { title: title.title_name, refresh: (user ? 300 : 0) }) _%> +<%- include('header', { title: title.title_name, refresh: (user ? 300 : 0) }) -%> -<%- include('../public/' + title.title_id + '/about.html') %> +<%- include('../public/' + title.title_id + '/about.html') -%>

Read more about the game on boardgamegeek.com.

Open Games

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

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

Active Games

- -
IDScenarioOptionsPlayersDescriptionChangedTurn -<%_ active_games.forEach((row) => { _%> +
IDScenarioPlayersDescriptionChangedTurn +<% active_games.forEach((row) => { %>
<%= row.game_id %> -<%= row.scenario %> -<%- row.options %> -<%- row.player_names %> -<%= row.description %> -<%= row.mtime %> -"><%= row.active %> -<%_ - if (row.is_yours) { - if (row.is_shared) { - %>Play<% - } else { - %>Play<% - } - } else { - %>View<% - - } -_%> -<%_ }); _%> +<%= 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) { _%> +<% if (finished_games.length > 0) { %>

Finished Games

- -
IDScenarioOptionsPlayersDescriptionFinishedResult -<%_ finished_games.forEach((row) => { _%> +
IDScenarioPlayersDescriptionFinishedResult +<% finished_games.forEach((row) => { %>
<%= row.game_id %> -<%= row.scenario %> -<%- row.options %> -<%- row.player_names %> -<%= row.description %> -<%= row.mtime %> -<%= row.result %> -<%_ - if (row.is_yours) { - if (row.is_shared) { - %>View<% - } else { - %>View<% - } - } else { - %>View<% - } -_%> -<%_ }); _%> +<%= 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