%- include("extra/header", {title: "Main page!" }) %>
<%- include("extra/navbar", {user}) %>
<%= thread.title %>
<% messages.forEach(message=>{ %>
<% if (message){ %>
<%=new Date(message.time).toLocaleString() %>
<%= message.content %>
<% if (user){ %>
<% } %>
<% } else { %>
DELETED MESSAGE
<% } %>
<% }); %>
<%- include("extra/footer") %>