ForumExperiment/views/pages/index.ejs
2023-04-13 15:21:17 -04:00

35 lines
622 B
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<%- include('../partials/head'); %>
</head>
<body>
<%- include('../partials/header') -%>
<div id="content">
<%- include('../partials/top'); %>
<main>
<% threads.forEach((t) => { %>
<h2><a href="/thread/<%= t.id %>/"><%= t.name %></a></h2>
<%= t.description %>
<br>
<%- include('../partials/format_date',{format_date:t.creationdate}); %>
<br>
<% }); %>
<%- include('../partials/create_thread'); %>
</main>
</div>
<footer>
<%- include('../partials/footer'); %>
</footer>
</body>
</html>