25 lines
No EOL
1.1 KiB
Text
25 lines
No EOL
1.1 KiB
Text
<div class='main'>
|
|
<h1 class="header-big">
|
|
<% if (username) { %>
|
|
<img src="/uploads/pfp_<%= username %>.png" class="avatar-img">
|
|
<a class='link' href='/users/<%= username %>'><%= username %></a>
|
|
<% } else { %>
|
|
Context
|
|
<% } %>
|
|
</h1>
|
|
<div>
|
|
<% for (let contentN of content) { %>
|
|
<% if (contentN[0] == 'file') { %>
|
|
<img class='art' src='<%= new URL(contentN[1], 'https://tbg.dervland.net/') %>'>
|
|
<% } else if (contentN[0] == 'link') { %>
|
|
<a class='link' href='<%= contentN[1] %>.'><%= contentN[1] %></a>
|
|
<% } else if (contentN[0].replaceAll(' ','').length > 0) { %>
|
|
<span class='commentbox'><%= contentN[0] %></span>
|
|
<% } } %>
|
|
</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: '/walls.svg', name: 'Replies'}) %>
|
|
</div> |