ForumExperiment/views/pages/index.ejs

35 lines
622 B
Plaintext
Raw Permalink Normal View History

2023-04-13 19:21:17 +00:00
<!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>