48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= config.charset %>">
|
|
<head>
|
|
<%- include("../partials/head") %>
|
|
</head>
|
|
<body>
|
|
Misc:<br/>
|
|
<a href="/">Home Page</a><br/>
|
|
<a href="<%= config.new_post_url %>">New Post Form</a><br/>
|
|
<a href="<%= config.signup_url %>">Signup Form</a><br/>
|
|
Indexes:<br/>
|
|
<a href="/index/posts">Posts Index</a><br/>
|
|
<a href="/index/users">Users Index</a><br/>
|
|
<a href="/index/comments">Comments Index</a><br/>
|
|
Posts:<br/>
|
|
<% for (let postID = 0; postID < posts.length; postID++) { %>
|
|
<% if (posts[postID]["deleted"] != true) { %>
|
|
<a href="/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
|
|
<% }; %>
|
|
<% }; %>
|
|
Comments:<br/>
|
|
<% for (let postID = 0; postID < comments.length; postID++) { %>
|
|
<% for (let comment_index = 0; comment_index < comments[postID].length; comment_index++) { %>
|
|
<a href="/comment/<%= comments[postID][comment_index]["id"] %>"><%= comments[postID][comment_index]["id"] %></a><br/>
|
|
<% }; %>
|
|
<% }; %>
|
|
Users:<br/>
|
|
<% for (let userID = 0; userID < users.length; userID++) { %>
|
|
<% if (users[userID]["deleted"] != true) { %>
|
|
<a href="/user/<%= users[userID]["username"] %>"><%= users[userID]["username"] %></a><br/>
|
|
<% }; %>
|
|
<% }; %>
|
|
Edit Posts:<br/>
|
|
<% for (let postID = 0; postID < posts.length; postID++) { %>
|
|
<% if (posts[postID]["deleted"] != true) { %>
|
|
<a href="/<%= config.edit_post_base_url %>/<%= postID %>">Edit <%= posts[postID]["title"] %></a><br/>
|
|
<% }; %>
|
|
<% }; %>
|
|
Edit Users:<br/>
|
|
<% for (let userID = 0; userID < users.length; userID++) { %>
|
|
<% if (users[userID]["deleted"] != true) { %>
|
|
<a href="/<%= config.edit_account_base_url %>/<%= users[userID]["username"] %>">Edit <%= users[userID]["username"] %></a><br/>
|
|
<% }; %>
|
|
<% }; %>
|
|
<!-- TODO add tags -->
|
|
</body>
|
|
</html>
|