some beta stuff
This commit is contained in:
parent
2c480909ee
commit
4eddd1a0c7
7 changed files with 82 additions and 9 deletions
views
|
@ -1,17 +1,18 @@
|
|||
<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>
|
||||
<% for (let contentN of content) { %>
|
||||
<% if (contentN[0] == 'file' && contentN [1]) { %>
|
||||
<img class='art' src='<%= new URL(contentN[1], 'https://tbg.dervland.net/') %>'>
|
||||
<% } else { %>
|
||||
<div class='commentbox'><%= contentN[0] %></div>
|
||||
<% } %>
|
||||
<% if (contentN[0] == 'file' && contentN [1]) { %>
|
||||
<img class='art' src='<%= new URL(contentN[1], 'https://tbg.dervland.net/') %>'>
|
||||
<% } else { %>
|
||||
<div class='commentbox'><%= contentN[0] %></div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<% if (!isNaN(date * 1)) { %>
|
||||
<div class='sub'><b>Posted on</b> <%= new Date(date).toISOString() %> </div>
|
||||
|
|
23
views/user.ejs
Normal file
23
views/user.ejs
Normal file
|
@ -0,0 +1,23 @@
|
|||
<div class='main'>
|
||||
<h1 class="header-big">
|
||||
<img src="/uploads/pfp_<%= username %>.png" class="avatar-img">
|
||||
<span><%= username %></span>
|
||||
</h1>
|
||||
<span>A very cool person!</span>
|
||||
</div>
|
||||
|
||||
<% if (isYou) { %>
|
||||
<%- include('form.ejs', {
|
||||
title: "Your Settings",
|
||||
message: 'Configure your profile.',
|
||||
action: "/api/file/you/settings",
|
||||
inputs: [
|
||||
{
|
||||
"key": "Avatar",
|
||||
"type": "file",
|
||||
"name": "file",
|
||||
"default": ""
|
||||
}
|
||||
]
|
||||
}) %>
|
||||
<% } %>
|
Loading…
Add table
Add a link
Reference in a new issue