51 lines
No EOL
1.4 KiB
Text
51 lines
No EOL
1.4 KiB
Text
<% if (comment.comment != 'fail') { %>
|
|
<%- include ('comment.ejs', comment.comment || {}) %>
|
|
<% } %>
|
|
|
|
<div class='main'>
|
|
<h1 class="header-big">Replies</h1>
|
|
<%- include ('vblock.ejs', {link: `${Math.max(page - 1,0)}`, icon: '/prev.svg', name: 'Previous'}) %>
|
|
<%- include ('vblock.ejs', {link: `${page * 1 + 1}`, icon: '/next.svg', name: 'Next'}) %>
|
|
</div>
|
|
<% if (page == 0) { %>
|
|
<%- include('form.ejs', {
|
|
title: "Reply",
|
|
message: 'Send your thoughts to the world.',
|
|
action: "/api/file/comment",
|
|
inputs: [
|
|
{
|
|
"key": "Message",
|
|
"type": "textarea",
|
|
"name": "post",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "Attachments",
|
|
"type": "file",
|
|
"name": "file",
|
|
"default": ""
|
|
},
|
|
{
|
|
"key": "Edit?",
|
|
"type": "checkbox",
|
|
"name": "edit",
|
|
"default": "edit"
|
|
},
|
|
{
|
|
"key": "",
|
|
"type": "hidden",
|
|
"name": "type",
|
|
"default": type
|
|
},
|
|
{
|
|
"key": "",
|
|
"type": "hidden",
|
|
"name": "id",
|
|
"default": id
|
|
},
|
|
]
|
|
}) %>
|
|
<% } %>
|
|
<% for (let reply of replies) { %>
|
|
<%- include ('comment.ejs', reply.comment || {}) %>
|
|
<% } %> |