43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<%- include('../partials/head'); %>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<%- include('../partials/header') -%>
|
||
|
<div id="content">
|
||
|
|
||
|
<%- include('../partials/top'); %>
|
||
|
|
||
|
<main>
|
||
|
<h1><%= threadinfo.name %></h1>
|
||
|
<h2><%= threadinfo.description %> <%- include('../partials/format_date',{format_date:threadinfo.creationdate}); %></h2>
|
||
|
<% messages.forEach((m) => { %>
|
||
|
<div id="messageContainer">
|
||
|
<%- include('../partials/message',{m:m}); %>
|
||
|
</div>
|
||
|
<% }); %>
|
||
|
<%
|
||
|
if(locals.session.logged_in){
|
||
|
%>
|
||
|
<form id="submitForm" action="/message/<%= threadinfo.id %>" method="post">
|
||
|
<label for="subjectText">Subject:</label>
|
||
|
<input type="text" name="subjectText" id="">
|
||
|
<label for="messageText">message:</label>
|
||
|
<textarea name="messageText" id="" cols="30" rows="10"></textarea>
|
||
|
<button type="submit">send</button>
|
||
|
</form>
|
||
|
<% } else {; %>
|
||
|
<p>You must login to post a message.</p>
|
||
|
<% } %>
|
||
|
|
||
|
</main>
|
||
|
</div>
|
||
|
<footer>
|
||
|
<%- include('../partials/footer'); %>
|
||
|
</footer>
|
||
|
|
||
|
</body>
|
||
|
</html>
|