24 lines
No EOL
1.2 KiB
Text
24 lines
No EOL
1.2 KiB
Text
<%- include('form_bare.ejs', { data: [ { label: "" , type: "text" , name: "targetId" , hidden: id }, { label: "" ,
|
|
type: "text" , name: "targetType" , hidden: route }, { label: "Your thoughts..." , type: "textarea" ,
|
|
name: "content" , hidden: route }, ], 'route' : '/api/form/comment' , 'title' : 'Comments' , noCaptcha: true }) -%>
|
|
|
|
<div class="content">
|
|
<% for (let comment of comments) { %>
|
|
<div class='comment'>
|
|
<div class='avatar'>
|
|
<img src='/pfp/<%= comment.username %>.png' class='avatar-img'>
|
|
<div>
|
|
<div><b>
|
|
<a class='link' href='/client/user?id=<%= comment.username %>'>
|
|
<%= comment.username %>
|
|
</a>
|
|
</b></div>
|
|
<div><b>
|
|
<%= (new Date(comment.date)+'').split(/(GMT|UTC)/g)[0] %>
|
|
</b></div>
|
|
<pre><%- comment.content %></pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
</div> |