akf-forum/views/threads.ejs
2022-04-06 21:38:25 +03:00

25 lines
No EOL
619 B
Text

<!DOCTYPE html>
<html lang="en">
<%- include("extra/header", {title: "Thread list" }) %>
<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>