%- 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. <% if (user) { %>
ID | Scenario | Owner | Description | Created | <% if (open_games.length > 0) { %> <% open_games.forEach((row) => { %> |
---|---|---|---|---|---|
<%= row.game_id %> | <%= row.scenario %> | <%= row.owner_name %> | <%= row.description %> | <%= row.ctime %> | Join <% }); } else { %> |
No open games. <% } %> |
Create a new game. <% if (active_games.length > 0) { %>
ID | Scenario | Players | Description | Changed | Turn | <% active_games.forEach((row) => { %> | |||
---|---|---|---|---|---|---|---|---|---|
<%= row.game_id %> | <%= row.scenario %> | <%= row.players.join(", ") %> | <%= row.description %> | <%= row.mtime %> <% if (row.your_turn) { %> | <%= row.active %><% } else { %> | <%= row.active %><% } let me = row.players.reduce((n,p) => n + (p === user.name ? 1 : 0), 0); if (me == 1) { %> | Play<% } else if (me > 1) { %> | Play<% } else { %> | View<% } %> <% }); %> |
ID | Scenario | Players | Description | Finished | Result | <% finished_games.forEach((row) => { %> |
---|---|---|---|---|---|---|
<%= row.game_id %> | <%= row.scenario %> | <%= row.players.join(", ") %> | <%= row.description %> | <%= row.mtime %> | <%= row.result %> | View <% }); %> |
Login to create or join a game. <% } %>