wall context

This commit is contained in:
biglyderv 2025-02-26 16:37:48 -05:00
parent d65c737a6e
commit f0782b0472
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
8 changed files with 33 additions and 11 deletions

View file

@ -1,7 +1,15 @@
<div class='main'>
<h1 class="header-big"><%= username %></h1>
<h1 class="header-big">
<% if (username) { %>
<a class='link' href='/users/<%= username %>'><%= username %></a>
<% } else { %>
Context
<% } %>
</h1>
<div><%= content %></div>
<% if (!isNaN(date * 1)) { %>
<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>