diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-09 23:02:02 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-09 23:02:02 +0100 |
commit | 023c7e0c87ee0ff96b17cd4e4a3b0915d1c223d1 (patch) | |
tree | 9cc72d0a267b3080667e633a1934de2799567b16 /views | |
parent | 696c2c03269135a6e3cf9d802da30e2152d2664c (diff) | |
download | server-023c7e0c87ee0ff96b17cd4e4a3b0915d1c223d1.tar.gz |
Add missing files.
Diffstat (limited to 'views')
-rw-r--r-- | views/change_about.ejs | 9 | ||||
-rw-r--r-- | views/user.ejs | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/views/change_about.ejs b/views/change_about.ejs new file mode 100644 index 0000000..249f9be --- /dev/null +++ b/views/change_about.ejs @@ -0,0 +1,9 @@ +<%- include('header', { title: "Change Profile" }) %> +<style> +textarea { width: 100%; max-width: 45em; } +</style> +<form action="/change_about" method="post"> +<textarea name="about" rows="20" cols="80" maxlength="32000" autofocus><%= about %></textarea> +<p> +<button type="submit">Submit</button> +</form> diff --git a/views/user.ejs b/views/user.ejs new file mode 100644 index 0000000..aa5d00f --- /dev/null +++ b/views/user.ejs @@ -0,0 +1,16 @@ +<%- include('header', { title: who.name }) %> +<style> +.logo { width: 80px; height: 80px; } +</style> +<img class="logo" src="<%= who.avatar %>" width="80" height="80"> +<% if (who.about) { %> +<p style="white-space:pre-wrap;font-style:italic"><%= who.about %></p> +<% } else { %> +<br clear="left"> +<% } %> +<p> +Member since <%= who.ctime %>. +<p> +Was last seen <%= who.atime %>. +<p> +<a href="/message/send/<%- who.name %>">Send message</a> |