mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
#47 Hides the reply button based if comments are 2 levels deep.
This commit is contained in:
@@ -11,17 +11,17 @@
|
||||
</div>
|
||||
<div class="comment-actions">
|
||||
<ul>
|
||||
<li><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">Reply</a></li>
|
||||
<li ng-if="level < 3"><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment" is-reply="true">Reply</a></li>
|
||||
<li><a href="#" comment-reply-link no-comment-reply-dupe="true" comment="comment">Edit</a></li>
|
||||
<li><a href="#">@{{::comment.created_at}}</a></li>
|
||||
</ul>
|
||||
<li><a href="#">@{{::comment.created_at}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="#" ng-click="vm.loadSubComments($event, comment, $index)" class="load-more-comments" ng-if="comment.cnt_sub_comments > 0 && !comment.is_loaded">
|
||||
Load @{{::comment.cnt_sub_comments}} more comment(s)
|
||||
</a>
|
||||
<div class="comment-box" ng-repeat="comment in comments = comment.comments track by comment.id">
|
||||
</a>
|
||||
<div class="comment-box" ng-repeat="comment in comments = comment.comments track by comment.id" ng-init="level = level + 1">
|
||||
<div ng-include src="'comment-list-item.html'">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user