From e1ba80b1b7561f50c71d4ec45912eb39f438b511 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 7 Jul 2021 15:29:04 +0200 Subject: Add pages to change your user name and email. --- views/change_mail.ejs | 12 ++++++++++++ views/change_name.ejs | 12 ++++++++++++ views/profile.ejs | 15 +++++++-------- 3 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 views/change_mail.ejs create mode 100644 views/change_name.ejs (limited to 'views') diff --git a/views/change_mail.ejs b/views/change_mail.ejs new file mode 100644 index 0000000..6c3ed62 --- /dev/null +++ b/views/change_mail.ejs @@ -0,0 +1,12 @@ +<%- include('header', { title: "Change mail address" }) %> +
+

+Name: <%= user.name %> +

+Mail: <%= user.mail %> +

+
+ +

+ +

diff --git a/views/change_name.ejs b/views/change_name.ejs new file mode 100644 index 0000000..eac508f --- /dev/null +++ b/views/change_name.ejs @@ -0,0 +1,12 @@ +<%- include('header', { title: "Change name" }) %> +
+

+Name: <%= user.name %> +

+Mail: <%= user.mail %> +

+
+ +

+ +

diff --git a/views/profile.ejs b/views/profile.ejs index 7829870..74843f3 100644 --- a/views/profile.ejs +++ b/views/profile.ejs @@ -12,20 +12,19 @@ Your mail address is <%= user.mail %>.
-

-<% +

<% if (open_games.length > 0) { %>

Open Games

-- cgit v1.2.3