akf-forum/views/threads.ejs

26 lines
No EOL
608 B
Text

<!DOCTYPE html>
<html lang="en">
<%- include("extra/header", {title: "Main page!" }) %>
<body>
<%- include("extra/navbar", {user}) %>
<h1>Threads:</h1>
<ul>
<% threads.forEach(thread=>{ %>
<li>
<h1><a href=<%=links[threads.indexOf(thread)] %> > <%= thread.title %> by <%= thread.author.name
%></a>
</h1>
</li>
<% }); %>
</ul>
<%- include("extra/footer") %>
</body>
</html>