summaryrefslogtreecommitdiff
path: root/views/join.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-20 19:47:08 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-21 12:48:15 +0100
commita1fe768c6d40c7c885db1c9843c61527cbe583e3 (patch)
treec397e7d6796049607d6348c538621d1e8809a847 /views/join.ejs
parentd1318d147297161691f5048e1f2cb4e516159144 (diff)
downloadserver-a1fe768c6d40c7c885db1c9843c61527cbe583e3.tar.gz
Rewrite view templates to use Pug engine.
Diffstat (limited to 'views/join.ejs')
-rw-r--r--views/join.ejs52
1 files changed, 0 insertions, 52 deletions
diff --git a/views/join.ejs b/views/join.ejs
deleted file mode 100644
index e2c626f..0000000
--- a/views/join.ejs
+++ /dev/null
@@ -1,52 +0,0 @@
-<%- include('header', { title: game.title_name }) -%>
-<style>
-table { min-width: auto; }
-th, td { min-width: 10em; }
-a.red { text-decoration: none; color: brown; font-size: 14px; }
-td a { text-decoration: underline; color: blue; }
-.hide { display: none; }
-</style>
-<script>
-let game = <%- JSON.stringify(game) %>;
-let roles = <%- JSON.stringify(roles) %>;
-let players = <%- JSON.stringify(players) %>;
-let user_id = <%- user.user_id %>;
-let ready = <%- ready %>;
-</script>
-<script src="/join.js"></script>
-<p id="error" class="error"></p>
-
-<a href="/info/<%= game.title_id %>"><img class="logo" src="/<%= game.title_id %>/cover.jpg"></a>
-
-<div class="info">
-<p>
-Owner: <%= game.owner_name %>
-<% if (game.private) { %>
-(private)
-<% } %>
-<br>
-Scenario: <%= game.scenario %>
-<br>
-Options: <%= game.options %>
-
-<p>
-<%= game.description || "No description." %>
-
-<br clear=left>
-
-<table class="small">
-<tr>
-<% roles.forEach((role) => { %>
-<th class="command" id="role_<%= role.replace(/ /g, '_') %>_name"><%= role %></th>
-<% }); %>
-<tr>
-<% roles.forEach((role) => { %>
-<td class="command" id="role_<%= role.replace(/ /g, '_') %>">-</td>
-<% }); %>
-<tr>
-<td class="command" id="message" colspan="<%= roles.length %>">-</td>
-</table>
-
-<p>
-<button class="hide" id="delete_button" onclick="confirm_delete()">Delete</button>
-<button class="hide" id="start_button" onclick="javascript:send('/start/<%= game.game_id %>')" disabled>Start!</button>