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-04-26 17:05:29 -04:00
|
|
|
<img ng-src="@{{::defaultAvatar}}" alt="user avatar">
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
|
|
|
<div class="comment-container">
|
|
|
|
<div class="comment-header">
|
|
|
|
@{{ ::comment.created_by_name }}
|
|
|
|
</div>
|
2017-05-15 15:10:14 -04:00
|
|
|
<div ng-bind-html="comment.html" class="comment-body">
|
2017-04-18 15:54:33 -04:00
|
|
|
|
|
|
|
</div>
|
2017-05-24 22:34:19 -04:00
|
|
|
<div class="comment-actions" ng-class="{'has-border': comment.cnt_sub_comments === 0 || comment.is_loaded}">
|
2017-04-18 15:54:33 -04:00
|
|
|
<ul>
|
2017-05-23 21:32:11 -04:00
|
|
|
<li ng-if="level < 3"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">Reply</a></li>
|
2017-05-15 15:10:14 -04:00
|
|
|
<li><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment">Edit</a></li>
|
2017-05-24 22:34:19 -04:00
|
|
|
<li>Created <a title="@{{::comment.created.day_time_str}}" href="#comment-@{{::comment.id}}-@{{::pageId}}">@{{::comment.created.diff}}</a></li>
|
|
|
|
<li ng-if="comment.updated"><span title="@{{::comment.updated.day_time_str}}">Updated @{{::comment.updated.diff}}</span></li>
|
2017-05-23 21:32:11 -04:00
|
|
|
</ul>
|
2017-04-18 15:54:33 -04:00
|
|
|
</div>
|
2017-05-24 22:34:19 -04:00
|
|
|
<div class="load-more-comments" ng-if="comment.cnt_sub_comments > 0 && !comment.is_loaded">
|
|
|
|
<a href="#" ng-click="vm.loadSubComments($event, comment, $index)">
|
|
|
|
Load @{{::comment.cnt_sub_comments}} more comment(s)
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-05-23 21:32:11 -04:00
|
|
|
<div class="comment-box" ng-repeat="comment in comments = comment.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>
|