%- include('header', { title: "Rally the Troops!", refresh: (active_games.length > 0 ? 300 : 0) }) %>
Welcome, <%= user.name %>!
Your mail address is <%= user.mail %>.
»
<%
if (user.notify) {
%>Disable mail notifications<%
} else {
%>Enable mail notifications<%
}
%>
»
Change
password,
mail address,
name,
or profile text.
»
Logout
<% if (open_games.length > 0) { %>
ID | Game | Scenario | Players | Description | Created | <% open_games.forEach((row) => { %> |
---|---|---|---|---|---|---|
<%= row.game_id %> | <%= row.title_name %> | <%= row.scenario %> | <%- row.player_names %> | <%= row.description %> | <%= row.ctime %> | Join <% }); %> |
ID | Game | Scenario | Players | Description | Changed | Turn | <% 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_shared) { %> | Enter<% } else { %> | Play<% } %> <% }); %> |
ID | Game | Scenario | Players | Description | Finished | Result | <% finished_games.forEach((row) => { %> |
---|---|---|---|---|---|---|---|
<%= row.game_id %> | <%= row.title_name %> | <%= row.scenario %> | <%- row.player_names %> | <%= row.description %> | <%= row.mtime %> | <%= row.result %> | View <% }); %> |
You don't have any current or finished games. <% } %>