%- include("../partials/head") %>
Misc:
Home Page
Posts Index
Users Index
Comments Index
New Post Form
Signup Form
Posts:
<% for (let postID = 0; postID < posts.length; postID++) { %>
<% if (posts[postID]["deleted"] != true) { %>
<%= posts[postID]["title"] %>
<% }; %>
<% }; %>
Comments:
<% for (let postID = 0; postID < comments.length; postID++) { %>
<% for (let comment_index = 0; comment_index < comments[postID].length; comment_index++) { %>
"><%= comments[postID][comment_index]["id"] %>
<% }; %>
<% }; %>
Users:
<% for (let userID = 0; userID < users.length; userID++) { %>
<% if (users[userID]["deleted"] != true) { %>
"><%= users[userID]["username"] %>
<% }; %>
<% }; %>
Edit Posts:
<% for (let postID = 0; postID < posts.length; postID++) { %>
<% if (posts[postID]["deleted"] != true) { %>
Edit <%= posts[postID]["title"] %>
<% }; %>
<% }; %>
Edit Users:
<% for (let userID = 0; userID < users.length; userID++) { %>
<% if (users[userID]["deleted"] != true) { %>
">Edit <%= users[userID]["username"] %>
<% }; %>
<% }; %>