wall context
This commit is contained in:
parent
d65c737a6e
commit
f0782b0472
8 changed files with 33 additions and 11 deletions
|
@ -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>
|
|
@ -10,9 +10,7 @@
|
|||
<%= kv.key %>
|
||||
</span>
|
||||
<% if (kv.type=='textarea' ) { %>
|
||||
<textarea class='form-input' type="<%= kv.type %>" name="<%= kv.name %>">
|
||||
<%= kv.default %>
|
||||
</textarea>
|
||||
<textarea class='form-input' type="<%= kv.type %>" name="<%= kv.name %>"><%= kv.default %></textarea>
|
||||
<% } else { %>
|
||||
<input class='form-input' type="<%= kv.type %>" name="<%= kv.name %>" <%- kv.type=='hidden' ? 'hidden' : '' %>
|
||||
value="<%= kv.default %>">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class='main'>
|
||||
<h1 class="header-big">Replies</h1>
|
||||
<%- include ('vblock.ejs', {link: `${page - 1}`, icon: '/icon.svg', name: 'Previous'}) %>
|
||||
<%- include ('vblock.ejs', {link: `${Math.max(page - 1,0)}`, icon: '/icon.svg', name: 'Previous'}) %>
|
||||
<%- include ('vblock.ejs', {link: `${page * 1 + 1}`, icon: '/icon.svg', name: 'Next'}) %>
|
||||
</div>
|
||||
<% if (page == 0) { %>
|
||||
|
@ -18,11 +18,11 @@
|
|||
"type": "textarea",
|
||||
"name": "post",
|
||||
"default": ""
|
||||
},
|
||||
},
|
||||
{
|
||||
"key": "Attachments",
|
||||
"type": "file",
|
||||
"name": "post",
|
||||
"name": "file",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue