X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b94b945fb03e21a1997cfe6e50148967586cb26d..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 fc81f13ee..48bf885ff 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,37 +1,46 @@ -
+
- @exposeTranslations([ - 'entities.comment_updated_success', - 'entities.comment_deleted_success', - 'entities.comment_created_success', - 'entities.comment_count', - ]) - -
-
{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}
- @if (count($page->comments) === 0 && userCan('comment-create-all')) -
-
@endif
-
- @foreach($page->comments as $comment) - @include('comments.comment', ['comment' => $comment]) +
+ @foreach($commentTree->get() as $branch) + @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false]) @endforeach
@if(userCan('comment-create-all')) @include('comments.create') - - @if (count($page->comments) > 0) -
-
@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