X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0372efa89a059e55eb0179186b15a012d6196874..refs/pull/5681/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index 3d7763e22..f27127e97 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,40 +1,82 @@ -
-

{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}

+
-
- @foreach($page->comments as $comment) - @include('comments.comment', ['comment' => $comment]) - @endforeach +
+
+ + +
+ @if ($commentTree->empty() && userCan('comment-create-all')) +
+ +
+ @endif
+
+
+ @foreach($commentTree->getActive() as $branch) + @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false]) + @endforeach +
- @if(userCan('comment-create-all')) +

{{ trans('entities.comment_none') }}

- + @if(userCan('comment-create-all')) + @include('comments.create') + @if (!$commentTree->empty()) +
+ +
+ @endif + @endif +
-
- -
+ + + @if(userCan('comment-create-all') || $commentTree->canUpdateAny()) + @push('body-end') + + @include('form.editor-translations') + @include('entities.selector-popup') + @endpush @endif -
\ No newline at end of file +
\ No newline at end of file