From 652852e3104ce4020de53231ee7691a4970439d6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 May 2021 00:48:35 +0200 Subject: Add server and lobby code. --- views/header.ejs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 views/header.ejs (limited to 'views/header.ejs') diff --git a/views/header.ejs b/views/header.ejs new file mode 100644 index 0000000..9e101dd --- /dev/null +++ b/views/header.ejs @@ -0,0 +1,32 @@ + + + + +<% if (typeof refresh != 'undefined' && refresh > 0) { %><% } %> + + + +<%= title %> + + +
+
+
+About +<% + if (user) { + %>Profile (<%= user.name %>)<% + } else { + %>Signup<% + %>Login<% + } +%> +
+
+
+

<%= title %>

+<% + if (typeof message != 'undefined' && message.length > 0) { + %>

<%= Array.isArray(message) ? message.join("\n") : message %>

<% + } +%> -- cgit v1.2.3