<%- include("extra/header", { title: thread.title }) %> <%- include("extra/navbar", {user}) %>

<%= thread.title %>

By > <%= thread.author.name %> alt=<%= thread.author.name %>>

<% if (user && !thread.deleted){ %> <% } else { %>

This thread has been deleted

<% }; %>
<% messages.forEach(message=>{ %> <% if (message){ %>

<%=new Date(message.time).toLocaleString() %>

alt=<%= message.author.name %>> > <%= message.author.name %>:

<%= message.content %>


<% if (user){ %> <% if (!message.deleted){ %>
<% } else { %>

This message has been deleted

<% }; %>

<%= message.reactCount %>

<% } %>
<% } else { %>

DELETED MESSAGE

<% } %>
<% }); %>


<% if (user){ %> <%} else {%> <% }%>
<% if (user){ %> <% }%> <%- include("extra/footer") %>