ugghhhh new site_path config option

This commit is contained in:
2026-05-30 20:05:01 +01:00
parent 6e7d2109c8
commit f11b94527d
23 changed files with 91 additions and 89 deletions
+11 -11
View File
@@ -5,41 +5,41 @@
</head>
<body>
Misc:<br/>
<a href="<%= config.site_url %>/">Home Page</a><br/>
<a href="<%= config.site_url %><%= config.new_post_url %>">New Post Form</a><br/>
<a href="<%= config.site_url %><%= config.signup_url %>">Signup Form</a><br/>
<a href="<%= config.site_path %>/">Home Page</a><br/>
<a href="<%= config.site_path %><%= config.new_post_url %>">New Post Form</a><br/>
<a href="<%= config.site_path %><%= config.signup_url %>">Signup Form</a><br/>
Indexes:<br/>
<a href="<%= config.site_url %>/index/posts">Posts Index</a><br/>
<a href="<%= config.site_url %>/index/users">Users Index</a><br/>
<a href="<%= config.site_url %>/index/comments">Comments Index</a><br/>
<a href="<%= config.site_path %>/index/posts">Posts Index</a><br/>
<a href="<%= config.site_path %>/index/users">Users Index</a><br/>
<a href="<%= config.site_path %>/index/comments">Comments Index</a><br/>
Posts:<br/>
<% for (let postID = 0; postID < posts.length; postID++) { %>
<% if (posts[postID]["deleted"] != true) { %>
<a href="<%= config.site_url %>/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
<a href="<%= config.site_path %>/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]['comments'].length; comment_index++) { %>
<a href="<%= config.site_url %>/comment/<%= postID %>-<%= comment_index %>"><%= postID %>-<%= comment_index %></a><br/>
<a href="<%= config.site_path %>/comment/<%= postID %>-<%= comment_index %>"><%= postID %>-<%= comment_index %></a><br/>
<% }; %>
<% }; %>
Users:<br/>
<% for (let userID = 0; userID < users.length; userID++) { %>
<% if (users[userID]["deleted"] != true) { %>
<a href="<%= config.site_url %>/user/<%= users[userID]["username"] %>"><%= users[userID]["username"] %></a><br/>
<a href="<%= config.site_path %>/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.site_url %><%= config.edit_post_base_url %>/<%= postID %>">Edit <%= posts[postID]["title"] %></a><br/>
<a href="<%= config.site_path %><%= 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.site_url %><%= config.edit_account_base_url %>/<%= users[userID]["username"] %>">Edit <%= users[userID]["username"] %></a><br/>
<a href="<%= config.site_path %><%= config.edit_account_base_url %>/<%= users[userID]["username"] %>">Edit <%= users[userID]["username"] %></a><br/>
<% }; %>
<% }; %>
<!-- TODO add tags -->
+1 -1
View File
@@ -6,7 +6,7 @@
<body>
<% for (let postID = 0; postID < comments.length; postID++) { %>
<% for (let comment_index = 0; comment_index < comments[postID]['comments'].length; comment_index++) { %>
<a href="<%= config.site_url %>/comment/<%= postID %>-<%= comment_index %>"><%= postID %>-<%= comment_index %></a><br/>
<a href="<%= config.site_path %>/comment/<%= postID %>-<%= comment_index %>"><%= postID %>-<%= comment_index %></a><br/>
<% }; %>
<% }; %>
</body>
+1 -1
View File
@@ -6,7 +6,7 @@
<body>
<% for (let postID = 0; postID < posts.length; postID++) { %>
<% if (posts[postID]["deleted"] != true) { %>
<a href="<%= config.site_url %>/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
<a href="<%= config.site_path %>/post/<%= postID %>"><%= posts[postID]["title"] %></a><br/>
<% }; %>
<% }; %>
</body>
+1 -1
View File
@@ -6,7 +6,7 @@
<body>
<% for (let userID = 0; userID < users.length; userID++) { %>
<% if (users[userID]["deleted"] != true) { %>
<a href="<%= config.site_url %>/user/<%= users[userID]["username"] %>"><%= users[userID]["username"] %></a><br/>
<a href="<%= config.site_path %>/user/<%= users[userID]["username"] %>"><%= users[userID]["username"] %></a><br/>
<% }; %>
<% }; %>
</body>