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

<%= thread.title %>

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

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

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

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

<%= message.content %>


<% if (user){ %>

<%= Object.values(message.react).filter(Boolean).length - Object.values(message.react).filter(x=> !x).length %>

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

DELETED MESSAGE

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

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