express-message-board/views/user.ejs
ak d5bf0927a6 progress update
everything tested and functional except direct messages
2023-09-19 22:54:57 -07:00

43 lines
1.2 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>b0ard - <%= user.username %></title>
<link rel="stylesheet" href="/styles/css/bootstrap.min.css" />
<link rel="stylesheet" href="/stylesheets/index.css" />
</head>
<body class="bg-dark text-light">
<header
class="d-flex w-100 align-items-center justify-content-between border-bottom mb-2 border-light py-2 px-4 w-100"
>
<a href="/" class="logotext p-0 m-0 fs-1">b0ard</a>
<a
href="/user/<%= user._id %>"
type="button"
class="btn btn-outline-light px-4 py-2"
>
<%= currentUser.username %>
</a>
</header>
<div class="d-flex flex-column py-4 px-4 align-items-center">
<h1><%= user.username %></h1>
<p>One day there will be avatars here</p>
<% if (user.username === currentUser.username) { %>
<a
href="/user/<%= user._id %>/edit"
type="button"
class="btn btn-outline-light px-4 py-2"
>
Edit User
</a>
<div class="pb-4"></div>
<a
href="/user/<%= user._id %>/logout"
type="button"
class="btn btn-danger px-4 py-2"
>
Log Out
</a>
<% } %>
</div>
</body>
</html>