rimgo/views/partials/comment.hbs

25 lines
793 B
Handlebars
Raw Normal View History

2022-01-18 23:05:06 +00:00
<div class="comment">
<div class="comment__user">
<img src="{{this.User.Avatar}}" class="pfp" width="24" height="24" loading="lazy">
2022-01-28 01:41:10 +00:00
<a href="/user/{{this.User.Username}}">
2022-01-18 23:21:25 +00:00
<p class="comment__user__username"><b>{{this.User.Username}}</b></p>
2022-01-28 01:41:10 +00:00
</a>
2022-01-18 23:05:06 +00:00
</div>
<div>
{{{this.Comment}}}
2022-01-28 01:41:10 +00:00
<p>
<span title="{{this.CreatedAt}}">{{this.RelTime}}</span>
2022-01-18 23:05:06 +00:00
{{#if this.DeletedAt}}
<span class="comment__updatedDate">(deleted {{this.DeletedAt}})</span>
{{/if}}
|
<span class="material-icons-outlined">thumb_up</span> {{this.Upvotes}}
<span class="material-icons-outlined">thumb_down</span> {{this.Downvotes}}
</p>
</div>
<div class="replies">
{{#each this.Comments}}
{{> partials/comment }}
{{/each}}
</div>
</div>