2012-09-06 10:18:26 +09:00
|
|
|
<template name="comment_item">
|
2012-09-11 11:09:16 +09:00
|
|
|
<li class="comment{{#if isQueued}} queued{{/if}}" id="{{_id}}">
|
2012-09-09 14:29:23 +09:00
|
|
|
<div class="comment-notification"><a href="#" class="open-comment-link">{{author}}</a></div>
|
2012-09-10 18:12:04 +09:00
|
|
|
<div class="comment-body">
|
|
|
|
<div class="comment-content">
|
|
|
|
<div class="comment-actions">
|
|
|
|
<a class="upvote" href="/">
|
|
|
|
<i class="icon-up"></i>
|
|
|
|
<span>upvote</span>
|
|
|
|
</a>
|
|
|
|
<a class="downvote" href="/">
|
|
|
|
<i class="icon-down"></i>
|
|
|
|
<span>downvote</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="comment-meta">
|
|
|
|
<a class="comment-username" href="#">{{author}}</a>
|
|
|
|
<span class="comment-time">{{ago}}</span>
|
|
|
|
<a href="/comments/{{_id}}" class="comment-permalink icon-link goto-comment">link</a>
|
|
|
|
{{#if is_my_comment}}
|
|
|
|
| <a class="edit-link" href="/comments/{{_id}}/edit">Edit</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="comment-text markdown">{{{body_formatted}}}</div>
|
|
|
|
<a href="/comments/{{_id}}" class="comment-reply goto-comment">Reply</a>
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
2012-09-10 18:12:04 +09:00
|
|
|
{{#unless repress_recursion}}
|
|
|
|
<ul class="comment-children">
|
|
|
|
{{#each child_comments}}
|
|
|
|
{{#with this}}
|
|
|
|
{{> comment_item}}
|
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
{{/unless}}
|
2012-08-22 23:40:09 -04:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</template>
|