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

<%= thread.title %>


<% messages.forEach(message=>{ %>
style="border: 2px solid #444444; padding: 5px;">

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

<%= message.content %>

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

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


<% }); %>

<%- include("extra/footer") %>