diaspora/app/assets/templates/comment_tpl.jst.hbs
flaburgan 8d6548b610
Introduce like-interactions.js
Adapt to latest development

User likes
 Set css class for inline likes on comment

Re-set participation on comment likes

Co-authored-by: Thorsten Claus <ThorstenClaus@web.de>
2023-11-13 02:26:59 +01:00

53 lines
1.4 KiB
Handlebars

<div id="{{guid}}">
<div class="img">
{{#linkToAuthor author}}
{{{personImage this "small" "small"}}}
{{/linkToAuthor}}
</div>
<div class="bd">
<div class="control-icons">
{{#if loggedIn}}
{{#if canRemove}}
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
<i class="entypo-trash"></i>
</a>
{{else}}
<a href="#" data-type="Comment" class="comment_report" title="{{t "report.name"}}">
<i class="entypo-warning"></i>
</a>
{{/if}}
{{/if}}
</div>
<div>
{{#linkToAuthor author}}
{{name}}
{{/linkToAuthor}}
-
<a href="/posts/{{parent.id}}#{{guid}}" class="permalink_comment">
<time class="timeago" data-original-title="{{{localTime created_at}}}" datetime="{{created_at}}"></time>
</a>
<a href="/posts/{{parent.guid}}#{{guid}}" class="permalink gray" title="{{t "stream.permalink"}}">
<i class="entypo-link"></i>
</a>
</div>
<div class="collapsible comment-content markdown-content">
{{{text}}}
</div>
<div class="info">
<a href="#" class="like" rel='nofollow'>
{{~#if userLike~}}
{{~t "stream.unlike"~}}
{{~else~}}
{{~t "stream.like"~}}
{{~/if~}}
</a>
</div>
<div class="likes likes-on-comment"> </div>
</div>
</div>