X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/03e5d61798e6b8df3b4d74b5f3bb1a96fe8199bb..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 8c4cb9860..f27127e97 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,16 +1,82 @@ - - -
-

@{{vm.totalCommentsStr}}

-
-
-
- +
+ +
+
+ +
+ @if ($commentTree->empty() && userCan('comment-create-all')) +
+ +
+ @endif
-
-@include('comments/comment-reply', ['pageId' => $pageId]) \ No newline at end of file + +
+
+ @foreach($commentTree->getActive() as $branch) + @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false]) + @endforeach +
+ +

{{ 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