<%- include('header', { title: game.title_name }) -%> <% function to_english(k) { if (k === true) return 'yes'; if (k === false) return 'no'; return k.replace(/_/g, " ").replace(/^\w/, c => c.toUpperCase()); } function format_options(options) { return Object.entries(options||{}).map(([k,v]) => v === true ? to_english(k) : `${to_english(k)}=${to_english(v)}`).join(", "); } -%>

Owner: <%= game.owner_name %>
Private: <%= game.private ? "yes" : "no" %>
Scenario: <%= game.scenario %>
Options: <%- format_options(JSON.parse(game.options)) %>
Description: <%= game.description || "No description." %>
Status:
Result:
<% roles.forEach((role) => { %><% }); %> <% roles.forEach((role) => { %><% }); %>
<%= role %>
-
-