2016-03-28 14:47:43 +00:00
|
|
|
<li id="comment-{{ comment.id }}">
|
2015-09-18 21:56:54 +00:00
|
|
|
<div class="comment">
|
2016-03-28 14:47:43 +00:00
|
|
|
<a class="comment-avatar clean" href="{{ route('user.profile', comment.userData.id) }}" style="background-image: url('{{ route('file.avatar', comment.userData.id) }}');"><span style="color: {{ comment.userData.colour }};">{{ comment.userData.username }}</span></a>
|
2015-09-18 21:56:54 +00:00
|
|
|
<div class="comment-pointer"></div>
|
|
|
|
<div class="comment-content">
|
|
|
|
<div class="comment-controls">
|
|
|
|
<ul>
|
2016-03-28 14:47:43 +00:00
|
|
|
{% if comment.userData.id == user.id %}
|
2016-03-30 21:30:15 +00:00
|
|
|
<li><a href="javascript:void(0);" onclick="commentDelete({{ comment.id }});" class="clean fa fa-trash-o" title="Delete"></a></li>
|
2015-10-10 15:51:24 +00:00
|
|
|
{% else %}
|
2016-04-01 21:44:31 +00:00
|
|
|
<li><a href="{{ route('user.report', comment.userData.id) }}" class="clean fa fa-exclamation-circle" title="Report"></a></li>
|
2015-10-10 15:51:24 +00:00
|
|
|
{% endif %}
|
2016-03-30 21:30:15 +00:00
|
|
|
<li><a href="javascript:void(0);" onclick="commentReply({{ comment.id }}, '{{ session_id() }}', '{{ route('file.avatar', user.id) }}');" class="clean fa fa-reply" title="Reply" id="comment-action-reply-{{ comment.id }}"></a></li>
|
|
|
|
<li class="shown voting like"><a href="javascript:void(0);" onclick="commentVote({{ comment.id }}, 1);" class="clean"><span class="fa fa-thumbs-up"></span> <span id="comment-{{ comment.id }}-likes">{{ comment.upvotes }}</span></a></li>
|
|
|
|
<li class="shown voting dislike"><a href="javascript:void(0);" onclick="commentVote({{ comment.id }}, 0);" class="clean"><span class="fa fa-thumbs-down"></span> <span id="comment-{{ comment.id }}-dislikes">{{ comment.downvotes }}</span></a></li>
|
2015-09-18 21:56:54 +00:00
|
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="comment-text">
|
2016-03-28 14:47:43 +00:00
|
|
|
{{ comment.parsed|raw|nl2br }}
|
2015-09-18 21:56:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-30 21:30:15 +00:00
|
|
|
<ul class="comment-replies">
|
2016-03-28 14:47:43 +00:00
|
|
|
{% for comment in comment.replies %}
|
2016-01-04 20:14:09 +00:00
|
|
|
{% include 'elements/comment.twig' %}
|
2015-10-06 19:51:07 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2015-09-18 21:56:54 +00:00
|
|
|
</li>
|