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