Vulcan/client/views/comments/comment_item.html

45 lines
1.7 KiB
HTML
Raw Normal View History

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}}">
<div class="comment-body">
<div class="comment-content">
<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="#">
<i class="icon-up"></i>
<span>upvote</span>
</a>
2012-09-20 13:43:06 +09:00
<a class="downvote" href="#">
<i class="icon-down"></i>
<span>downvote</span>
</a>
</div>
2012-10-03 16:33:28 +09:00
<div class="user-avatar"><img src="{{user_avatar}}" /></div>
<div class="comment-main">
<div class="comment-meta">
<a class="comment-username" href="/users/{{userId}}">{{authorName}}</a>
<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}}
{{#if currentUser.isAdmin}}
| <span>{{full_date}}</span>
{{/if}}
</div>
<div class="comment-text markdown">{{{body_formatted}}}</div>
2012-10-05 22:09:13 +09:00
<a href="/comments/{{_id}}/reply" class="comment-reply goto-comment">Reply</a>
</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">
{{#each child_comments}}
{{#with this}}
{{> 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>