2016-06-11 17:41:28 +02:00
|
|
|
<div class='comment'>
|
|
|
|
<div class='avatar'>
|
2016-08-02 11:58:56 +02:00
|
|
|
<% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %>
|
2016-06-23 12:19:32 +02:00
|
|
|
<a href='/user/<%- encodeURIComponent(ctx.comment.user.name) %>'>
|
2016-06-11 17:41:28 +02:00
|
|
|
<% } %>
|
|
|
|
|
2016-08-02 11:58:56 +02:00
|
|
|
<%= ctx.makeThumbnail(ctx.comment.user ? ctx.comment.user.avatarUrl : null) %>
|
2016-06-11 17:41:28 +02:00
|
|
|
|
2016-08-02 11:58:56 +02:00
|
|
|
<% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %>
|
2016-06-11 17:41:28 +02:00
|
|
|
</a>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='body'>
|
2016-08-27 20:08:58 +02:00
|
|
|
<header><%
|
|
|
|
%><span class='nickname'><%
|
|
|
|
%><% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %><%
|
|
|
|
%><a href='/user/<%- encodeURIComponent(ctx.comment.user.name) %>'><%
|
|
|
|
%><% } %><%
|
|
|
|
|
|
|
|
%><%- ctx.comment.user ? ctx.comment.user.name : 'Deleted user' %><%
|
|
|
|
|
|
|
|
%><% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %><%
|
|
|
|
%></a><%
|
|
|
|
%><% } %><%
|
|
|
|
%></span><%
|
|
|
|
|
|
|
|
%><wbr><%
|
|
|
|
|
|
|
|
%><span class='date'><%
|
|
|
|
%><%= ctx.makeRelativeTime(ctx.comment.creationTime) %><%
|
|
|
|
%></span><%
|
|
|
|
|
|
|
|
%><wbr><%
|
|
|
|
|
|
|
|
%><span class='score-container'></span><%
|
|
|
|
|
|
|
|
%><wbr><%
|
|
|
|
|
|
|
|
%><% if (ctx.canEditComment) { %><%
|
|
|
|
%><a href class='edit'><%
|
|
|
|
%><i class='fa fa-pencil'></i> edit<%
|
|
|
|
%></a><%
|
|
|
|
%><% } %><%
|
|
|
|
|
|
|
|
%><wbr><%
|
|
|
|
|
|
|
|
%><% if (ctx.canDeleteComment) { %><%
|
|
|
|
%><a href class='delete'><%
|
|
|
|
%><i class='fa fa-remove'></i> delete<%
|
|
|
|
%></a><%
|
|
|
|
%><% } %><%
|
|
|
|
%></header>
|
2016-06-11 17:41:28 +02:00
|
|
|
|
2016-06-12 18:08:50 +02:00
|
|
|
<div class='comment-form-container'></div>
|
2016-06-11 17:41:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|