akf-forum/views/threads.ejs

25 lines
No EOL
618 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 style="display: inline;"> <a href=<%= thread.getLink() %> ><%= thread.title %></a></h1>
<h3 style="display: inline;"> | By <%= thread.author.name %></h3>
</li>
<% }); %>
</ul>
<%- include("extra/footer") %>
</body>
</html>