2017-05-24 22:34:19 -04:00
|
|
|
<div class='page-comment' id="comment-@{{::pageId}}-@{{::comment.id}}">
|
2017-04-18 15:54:33 -04:00
|
|
|
<div class="user-image">
|
2017-05-29 23:32:47 -04:00
|
|
|
<img ng-src="@{{::comment.created_by.avatar_url}}" alt="user avatar">
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
|
|
|
<div class="comment-container">
|
|
|
|
<div class="comment-header">
|
2017-05-29 23:32:47 -04:00
|
|
|
<a href="@{{::comment.created_by.profile_url}}">@{{ ::comment.created_by.name }}</a>
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
2017-06-04 10:42:01 -04:00
|
|
|
<div ng-bind-html="comment.html" ng-if="::comment.active" class="comment-body" ng-class="!comment.active ? 'comment-inactive' : ''">
|
2017-04-18 15:54:33 -04:00
|
|
|
|
2017-06-04 09:22:44 -04:00
|
|
|
</div>
|
2017-06-04 10:42:01 -04:00
|
|
|
<div ng-if="::!comment.active" class="comment-body comment-inactive">
|
2017-06-04 14:50:37 -04:00
|
|
|
{{ trans('entities.comment_deleted') }}
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
2017-05-29 23:32:47 -04:00
|
|
|
<div class="comment-actions">
|
2017-06-04 09:22:44 -04:00
|
|
|
<ul ng-if="!comment.is_hidden">
|
2017-06-05 16:16:59 -04:00
|
|
|
<li ng-if="::(level < 3 && vm.canComment())"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">{{ trans('entities.comment_reply') }}</a></li>
|
2017-06-07 14:15:29 -04:00
|
|
|
<li ng-if="::vm.canEditDelete(comment, 'comment_update')"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" >{{ trans('entities.comment_edit') }}</a></li>
|
|
|
|
<li ng-if="::vm.canEditDelete(comment, 'comment_delete')"><a href="#" comment-delete-link comment="comment" >{{ trans('entities.comment_delete') }}</a></li>
|
2017-06-07 15:44:53 -04:00
|
|
|
<li>Created <a title="@{{::comment.created.day_time_str}}" href="#?cm=comment-@{{::pageId}}-@{{::comment.id}}">@{{::comment.created.diff}}</a></li>
|
2017-06-05 16:16:59 -04:00
|
|
|
<li ng-if="::comment.updated"><span title="@{{::comment.updated.day_time_str}}">@{{ ::vm.trans('entities.comment_updated_text', { updateDiff: comment.updated.diff }) }}
|
|
|
|
<a href="@{{::comment.updated_by.profile_url}}">@{{::comment.updated_by.name}}</a></span></li>
|
2017-05-23 21:32:11 -04:00
|
|
|
</ul>
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
2017-05-29 23:32:47 -04:00
|
|
|
<div class="comment-box" ng-repeat="comment in comments = comment.sub_comments track by comment.id" ng-init="level = level + 1">
|
2017-04-26 17:05:29 -04:00
|
|
|
<div ng-include src="'comment-list-item.html'">
|
|
|
|
</div>
|
2017-05-23 21:32:11 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|