X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3286f29a61833327b5701b28db626d0a480b07f9..refs/pull/5313/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index 1e5a4231c..48bf885ff 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,40 +1,46 @@ -{{--TODO--}} -
-
{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}
+
-
- @foreach($page->comments as $comment) - @include('comments.comment', ['comment' => $comment]) +
+
{{ trans_choice('entities.comment_count', $commentTree->count(), ['count' => $commentTree->count()]) }}
+ @if ($commentTree->empty() && userCan('comment-create-all')) +
+ +
+ @endif +
+ +
+ @foreach($commentTree->get() as $branch) + @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false]) @endforeach
@if(userCan('comment-create-all')) - - \ No newline at end of file +
\ No newline at end of file