Vulcan/client/templates/comment_item.html
2012-09-08 11:54:08 +09:00

35 lines
1.1 KiB
HTML

<template name="comment_item">
<li class="comment">
<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">{{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>
</div>
{{#unless repress_recursion}}
<ul class="comment-children">
{{#each child_comments}}
{{#with this}}
{{> comment_item}}
{{/with}}
{{/each}}
</ul>
{{/unless}}
</li>
</template>