comments and replies work now
This commit is contained in:
parent
11147482d2
commit
9e5989825f
6 changed files with 102 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
<div class='main'>
|
||||
<div class="header-big">
|
||||
<div><%= username %> </div>
|
||||
<div><%= new Date(date) + '' %> </div>
|
||||
<div><%= new Date(date).toISOString() %> </div>
|
||||
</div>
|
||||
<div><%= content %></div>
|
||||
<%- include ('vblock.ejs', {link: `/walls/get${opLink}/0`, icon: '/icon.svg', name: 'Replies'}) %>
|
||||
<%- include ('vblock.ejs', {link: `/walls/get/${type}/${id}/0`, icon: '/icon.svg', name: 'Replies'}) %>
|
||||
</div>
|
|
@ -1,3 +1,34 @@
|
|||
<%- 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": "post",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"key": "",
|
||||
"type": "hidden",
|
||||
"name": "type",
|
||||
"default": type
|
||||
},
|
||||
{
|
||||
"key": "",
|
||||
"type": "hidden",
|
||||
"name": "id",
|
||||
"default": id
|
||||
},
|
||||
]
|
||||
}) %>
|
||||
<div class='main'>
|
||||
<h1 class="header-big">Replies</h1>
|
||||
<%- include ('vblock.ejs', {link: opLink, icon: '/icon.svg', name: 'Original'}) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue