some more ui stuff
This commit is contained in:
parent
9e5989825f
commit
d65c737a6e
5 changed files with 60 additions and 42 deletions
|
@ -1,8 +1,7 @@
|
|||
<div class='main'>
|
||||
<div class="header-big">
|
||||
<div><%= username %> </div>
|
||||
<div><%= new Date(date).toISOString() %> </div>
|
||||
</div>
|
||||
<h1 class="header-big"><%= username %></h1>
|
||||
<div><%= content %></div>
|
||||
<div class='sub'><b>Posted on</b> <%= new Date(date).toISOString() %> </div>
|
||||
<%- include ('vblock.ejs', {link: `/${type}/${id}`, icon: '/icon.svg', name: 'Original'}) %>
|
||||
<%- include ('vblock.ejs', {link: `/walls/get/${type}/${id}/0`, icon: '/icon.svg', name: 'Replies'}) %>
|
||||
</div>
|
|
@ -1,40 +1,45 @@
|
|||
<%- 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
|
||||
},
|
||||
]
|
||||
}) %>
|
||||
<% if (comment.comment != 'fail') { %>
|
||||
<%- include ('comment.ejs', comment.comment || {}) %>
|
||||
<% } %>
|
||||
|
||||
<div class='main'>
|
||||
<h1 class="header-big">Replies</h1>
|
||||
<%- include ('vblock.ejs', {link: opLink, icon: '/icon.svg', name: 'Original'}) %>
|
||||
<%- include ('vblock.ejs', {link: `${page - 1}`, icon: '/icon.svg', name: 'Previous'}) %>
|
||||
<%- include ('vblock.ejs', {link: `${page * 1 + 1}`, icon: '/icon.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": "post",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"key": "",
|
||||
"type": "hidden",
|
||||
"name": "type",
|
||||
"default": type
|
||||
},
|
||||
{
|
||||
"key": "",
|
||||
"type": "hidden",
|
||||
"name": "id",
|
||||
"default": id
|
||||
},
|
||||
]
|
||||
}) %>
|
||||
<% } %>
|
||||
<% for (let reply of replies) { %>
|
||||
<%- include ('comment.ejs', reply.comment || {}) %>
|
||||
<% } %>
|
Loading…
Add table
Add a link
Reference in a new issue