akf-forum/views/threads.ejs

31 lines
750 B
Text
Raw Normal View History

2022-03-13 16:16:46 +03:00
<!DOCTYPE html>
<html lang="en">
2022-08-26 16:27:29 +03:00
<%- include("extra/meta", {title: "Threads!" }) %>
2022-03-13 16:16:46 +03:00
2022-08-26 16:27:29 +03:00
<body>
<link rel="stylesheet" href="/css/threads.css" />
2022-03-26 23:28:10 +03:00
2022-08-26 16:27:29 +03:00
<%- include("extra/navbar") %>
2022-03-26 23:28:10 +03:00
2022-08-26 16:27:29 +03:00
<div class="threads">
2022-03-26 23:28:10 +03:00
2022-08-26 16:27:29 +03:00
<% 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">
2022-08-26 18:02:42 +03:00
<%= thread.author.name %> <div class="avatar"><img src="<%=thread.author.avatar %>"> </div>
2022-08-26 16:27:29 +03:00
</div>
</div>
</a>
<br>
<% }); %>
</div>
2022-03-26 23:28:10 +03:00
2022-08-26 16:27:29 +03:00
</body>