2012-09-06 10:18:26 +09:00
|
|
|
<template name="comment_item">
|
2012-09-15 18:41:08 +09:00
|
|
|
<li class="comment comment-displayed" id="{{_id}}">
|
2012-10-01 10:59:08 +09:00
|
|
|
<div class="comment-body">
|
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>
|
|
|
|
<span>upvote</span>
|
|
|
|
</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>
|
|
|
|
<span>downvote</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2013-10-23 08:14:06 +08:00
|
|
|
{{#constant}}
|
|
|
|
<div class="user-avatar"><img src="{{user_avatar}}" /></div>
|
|
|
|
{{/constant}}
|
2012-10-03 16:33:28 +09:00
|
|
|
<div class="comment-main">
|
|
|
|
<div class="comment-meta">
|
2013-10-24 11:04:27 +09:00
|
|
|
<a class="comment-username" href="{{userProfileRoute authorName}}">{{authorName}}</a>
|
2012-10-03 16:33:28 +09:00
|
|
|
<span class="comment-time">{{ago}},</span>
|
|
|
|
<span class="points">{{votes}} <span class="unit">points </span>
|
|
|
|
<a href="/comments/{{_id}}" class="comment-permalink icon-link goto-comment">link</a>
|
|
|
|
{{#if can_edit}}
|
|
|
|
| <a class="edit-link" href="/comments/{{_id}}/edit">Edit</a>
|
|
|
|
{{/if}}
|
2013-10-14 12:14:12 +09:00
|
|
|
{{#if currentUser.isAdmin}}`
|
2012-10-03 16:33:28 +09:00
|
|
|
| <span>{{full_date}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="comment-text markdown">{{{body_formatted}}}</div>
|
2013-10-15 12:28:57 +09:00
|
|
|
{{#if getSetting "nestedComments" true}}
|
2013-10-14 12:14:12 +09:00
|
|
|
<a href="/comments/{{_id}}/reply" class="comment-reply goto-comment">Reply</a>
|
|
|
|
{{/if}}
|
2012-09-10 18:12:04 +09:00
|
|
|
</div>
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
2012-11-21 13:41:27 +09:00
|
|
|
{{#if showChildComments}}
|
2012-09-13 14:57:57 +09:00
|
|
|
<ul class="comment-children comment-list">
|
2012-09-10 18:12:04 +09:00
|
|
|
{{#each child_comments}}
|
|
|
|
{{#with this}}
|
2013-10-09 20:23:20 +09:00
|
|
|
{{> comment_item}}
|
2012-09-10 18:12:04 +09:00
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2012-11-21 13:41:27 +09:00
|
|
|
{{/if}}
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</template>
|