comments and replies work now

This commit is contained in:
biglyderv 2025-02-26 01:40:27 -05:00
parent 11147482d2
commit 9e5989825f
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
6 changed files with 102 additions and 10 deletions

View file

@ -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>

View file

@ -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'}) %>