diff options
-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> |