prototype of comments

This commit is contained in:
biglyderv 2025-02-26 01:10:09 -05:00
parent 9cdf2326b8
commit 11147482d2
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
11 changed files with 216 additions and 5 deletions

8
views/comment.ejs Normal file
View file

@ -0,0 +1,8 @@
<div class='main'>
<div class="header-big">
<div><%= username %> </div>
<div><%= new Date(date) + '' %> </div>
</div>
<div><%= content %></div>
<%- include ('vblock.ejs', {link: `/walls/get${opLink}/0`, icon: '/icon.svg', name: 'Replies'}) %>
</div>

3
views/commenter.ejs Normal file
View file

@ -0,0 +1,3 @@
<% for (let reply of replies) { %>
<%- include ('comment.ejs', reply.comment || {}) %>
<% } %>

9
views/replies.ejs Normal file
View file

@ -0,0 +1,9 @@
<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>
<% for (let reply of replies) { %>
<%- include ('comment.ejs', reply.comment || {}) %>
<% } %>

9
views/wall.ejs Normal file
View file

@ -0,0 +1,9 @@
<div class="item">
<img class="item-img" src="/icon.svg">
<div class="item-desc">
<a class="item-a" href="/walls/get/<%= alias %>/0"> <%= name %></a>
<p>
<%= desc %>
</p>
</div>
</div>

8
views/walls.ejs Normal file
View file

@ -0,0 +1,8 @@
<div class="main">
<h1 class="header-big">My Walls</h1>
<div class='scroller'>
<% for (let wall of walls) { %>
<%- include ('wall.ejs', wall) %>
<% } %>
</div>
</div>