61 lines
1.9 KiB
Text
61 lines
1.9 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CVLT</title>
|
|
<link rel="stylesheet" href="/styles/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="/stylesheets/index.css" />
|
|
</head>
|
|
<body class="bg-dark text-light min-vh-100">
|
|
<div class="d-flex flex-column py-4 px-4 align-items-center">
|
|
<h1 class="logotext mb-4">CVLT</h1>
|
|
<p class="fs-3">Insights:</p>
|
|
<% messages.forEach(message => { %>
|
|
<a
|
|
href="/msg/<%= message._id %>"
|
|
type="button"
|
|
class="btn btn-outline-light px-4"
|
|
>
|
|
<h3 class="pt-2"><%= message.title %></h3>
|
|
<% if (user && user.isMember) { %>
|
|
<p>Penned: <%= message.date %> by <%= message.author %></p>
|
|
<% } %>
|
|
<p><%= message.text %></p>
|
|
</a>
|
|
<div class="pb-4"></div>
|
|
<% }) %> <% if (user && user.isMember) { %>
|
|
<a href="/msg/create" type="button" class="btn btn-success px-4">
|
|
+ Post Message
|
|
</a>
|
|
<% } %>
|
|
</div>
|
|
<% if (user && user.isMember === true && user.isAdmin === false) { %>
|
|
<footer
|
|
class="position-fixed bottom-0 border-light border-top w-100 py-2 d-flex justify-content-center bg-dark"
|
|
>
|
|
<a href="/user/sudo" type="button" class="btn btn-light px-4">
|
|
Join the Light
|
|
</a>
|
|
</footer>
|
|
<% } %> <% if (user && user.isMember === false) { %>
|
|
<footer
|
|
class="position-fixed bottom-0 border-light border-top w-100 py-2 d-flex justify-content-center bg-dark"
|
|
>
|
|
<a
|
|
href="/user/initiation"
|
|
type="button"
|
|
class="btn btn-outline-light px-4"
|
|
>
|
|
Become an Initiate
|
|
</a>
|
|
</footer>
|
|
<% } %> <% if (!user) { %>
|
|
<footer
|
|
class="position-fixed bottom-0 border-light border-top w-100 py-2 d-flex justify-content-center bg-dark"
|
|
>
|
|
<a href="/user/signin" type="button" class="btn btn-outline-light px-4">
|
|
Sign In
|
|
</a>
|
|
</footer>
|
|
<% } %>
|
|
</body>
|
|
</html>
|