Comments now have their own pages, at /comment/commentID, these are
linked to when someone replies to another comment (>> id), I also fixed a bug in comment submission where the counter was not incrementing
This commit is contained in:
11
views/pages/comment.ejs
Normal file
11
views/pages/comment.ejs
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<%- include('../partials/head'); %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="comment">
|
||||
<%- include("../partials/comment"); %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@@ -1,2 +1,3 @@
|
||||
<b><%= comment.name %></b> <%= func.unix_time_to_date_format(comment.pubdate) %> <i>No. <%= comment.id %></i>:<br/>
|
||||
<%= comment.content %>
|
||||
<%- func.render_comment(comment.content) %>
|
||||
<br/>
|
||||
|
Reference in New Issue
Block a user