49 lines
1.7 KiB
Smarty
49 lines
1.7 KiB
Smarty
<div class='comment'>
|
|
<div class='avatar'>
|
|
<% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %>
|
|
<a href='/user/<%- encodeURIComponent(ctx.comment.user.name) %>'>
|
|
<% } %>
|
|
|
|
<%= ctx.makeThumbnail(ctx.comment.user ? ctx.comment.user.avatarUrl : null) %>
|
|
|
|
<% if (ctx.comment.user && ctx.comment.user.name && ctx.canViewUsers) { %>
|
|
</a>
|
|
<% } %>
|
|
</div>
|
|
|
|
<div class='body'>
|
|
<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><!--
|
|
|
|
--><span class='date'><!--
|
|
--><%= ctx.makeRelativeTime(ctx.comment.creationTime) %><!--
|
|
--></span><!--
|
|
|
|
--><span class='score-container'></span><!--
|
|
|
|
--><% if (ctx.canEditComment) { %><!--
|
|
--><a class='edit'><!--
|
|
--><i class='fa fa-pencil'></i> edit<!--
|
|
--></a><!--
|
|
--><% } %><!--
|
|
|
|
--><% if (ctx.canDeleteComment) { %><!--
|
|
--><a class='delete'><!--
|
|
--><i class='fa fa-remove'></i> delete<!--
|
|
--></a><!--
|
|
--><% } %><!--
|
|
--></header>
|
|
|
|
<div class='comment-form-container'></div>
|
|
</div>
|
|
</div>
|