<%- include("extra/header", {title: "Main page!" }) %> <%- include("extra/navbar", {user}) %>

<%= thread.title %>

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


<% 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") %>