%- include("extra/meta", {title: "Thread list!" }) %>
<%- include("extra/navbar") %>
<% if (user){ %> <% }%>
<%= thread.title %>
View count: <%= thread.views %>
By
<%= thread.author.name %>
<% if (user && !thread.deleted){ %>
DELETE
EDIT
<% } else if (thread.deleted) { %>
This thread has been deleted
UNDELETE
<% }; %>
<% messages.filter(Boolean).forEach(message=>{ %>
<%= new Date(message.time).toLocaleString() %>
<%=message.author.name %>
:
<%= message.content%>
<% if (!message.deleted){ %>
DELETE
EDIT
<% }else{ %>
This message has been deleted
UNDELETE
<% } %>
<%=message.reactCount %>
+🔼
-🔽
<% }); %>
<% if (user){ %>
Send!
<%} else {%>
Login for send
<% }%>