akf-forum/views/threads.ejs
2022-08-26 20:22:46 +03:00

30 lines
754 B
Text

<!DOCTYPE html>
<html lang="en">
<%- include("extra/meta", {title: "Thread list!" }) %>
<body>
<link rel="stylesheet" href="/css/threads.css" />
<%- include("extra/navbar") %>
<div class="threads">
<% threads.forEach(thread=>{ %>
<a href="<%= thread.getLink() %>" class="">
<div class="threads-box">
<div class="thread-box-title">
<% if (thread.deleted) { %> <span>[DELETED]</span><% } %>
<%= thread.title %>
</div>
<div class="box-username">
<%= thread.author.name %> <div class="avatar"><img src="<%=thread.author.avatar %>"> </div>
</div>
</div>
</a>
<br>
<% }); %>
</div>
</body>