X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/79cfd39fde89ee4889c44954ddad9afd84ee9f1d..refs/pull/5312/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index ffa75cfed..48bf885ff 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,18 +1,46 @@ - - -
-

@{{vm.totalCommentsStr}}

-
-
-
+
-
+
+
{{ trans_choice('entities.comment_count', $commentTree->count(), ['count' => $commentTree->count()]) }}
+ @if ($commentTree->empty() && userCan('comment-create-all')) +
+ +
+ @endif
-
- @include('comments/comment-reply', ['pageId' => $pageId]) + +
+ @foreach($commentTree->get() as $branch) + @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false]) + @endforeach
-
\ No newline at end of file + + @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