2012-09-06 10:18:26 +09:00
|
|
|
<template name="comment_item">
|
2014-08-12 16:16:44 +09:00
|
|
|
<li class="comment module comment-displayed" id="{{_id}}">
|
2012-10-01 10:59:08 +09:00
|
|
|
<div class="comment-body">
|
2014-09-16 12:12:48 +09:00
|
|
|
{{#if isDeleted}}
|
|
|
|
<div class="comment-deleted">This comment has been deleted.</div>
|
|
|
|
{{else}}
|
2012-09-10 18:12:04 +09:00
|
|
|
<div class="comment-content">
|
2012-10-01 11:45:18 +09:00
|
|
|
<div class="comment-actions {{#if upvoted}}upvoted{{else}}not-upvoted{{/if}} {{#if downvoted}}downvoted{{else}}not-downvoted{{/if}}">
|
2012-09-20 13:43:06 +09:00
|
|
|
<a class="upvote" href="#">
|
2012-09-10 18:12:04 +09:00
|
|
|
<i class="icon-up"></i>
|
2013-11-06 01:01:56 +01:00
|
|
|
<span>{{i18n "upvote"}}</span>
|
2012-09-10 18:12:04 +09:00
|
|
|
</a>
|
2012-09-20 13:43:06 +09:00
|
|
|
<a class="downvote" href="#">
|
2012-09-10 18:12:04 +09:00
|
|
|
<i class="icon-down"></i>
|
2013-11-06 01:01:56 +01:00
|
|
|
<span>{{i18n "downvote"}}</span>
|
2012-09-10 18:12:04 +09:00
|
|
|
</a>
|
|
|
|
</div>
|
2014-05-01 19:58:56 -07:00
|
|
|
<div class="user-avatar"><img src="{{user_avatar}}" /></div>
|
2012-10-03 16:33:28 +09:00
|
|
|
<div class="comment-main">
|
|
|
|
<div class="comment-meta">
|
2013-10-26 10:37:32 +09:00
|
|
|
<a class="comment-username" href="{{profileUrl}}">{{authorName}}</a>
|
2012-10-03 16:33:28 +09:00
|
|
|
<span class="comment-time">{{ago}},</span>
|
2014-05-15 15:56:23 +09:00
|
|
|
<span class="points">{{upvotes}}</span> <span class="unit">points </span>
|
2013-11-06 01:01:56 +01:00
|
|
|
<a href="/comments/{{_id}}" class="comment-permalink icon-link goto-comment">{{i18n "link"}}</a>
|
2012-10-03 16:33:28 +09:00
|
|
|
{{#if can_edit}}
|
2013-11-06 01:01:56 +01:00
|
|
|
| <a class="edit-link" href="/comments/{{_id}}/edit">{{i18n "Edit"}}</a>
|
2012-10-03 16:33:28 +09:00
|
|
|
{{/if}}
|
|
|
|
{{#if currentUser.isAdmin}}
|
|
|
|
| <span>{{full_date}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2014-08-31 16:11:48 +09:00
|
|
|
<div class="comment-text markdown">{{{htmlBody}}}</div>
|
2013-10-15 12:28:57 +09:00
|
|
|
{{#if getSetting "nestedComments" true}}
|
2014-07-07 09:36:38 +09:00
|
|
|
<a href="/comments/{{_id}}" class="comment-reply goto-comment">{{i18n "Reply"}}</a>
|
2013-10-14 12:14:12 +09:00
|
|
|
{{/if}}
|
2012-09-10 18:12:04 +09:00
|
|
|
</div>
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
2014-09-16 12:12:48 +09:00
|
|
|
{{/if}}
|
2012-11-21 13:41:27 +09:00
|
|
|
{{#if showChildComments}}
|
2014-09-16 12:12:48 +09:00
|
|
|
<ul class="comment-children comment-list">
|
|
|
|
{{#each child_comments}}
|
|
|
|
{{#with this}}
|
|
|
|
{{> UI.dynamic template=comment_item}}
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2012-11-21 13:41:27 +09:00
|
|
|
{{/if}}
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</template>
|