X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5c92b72fdd419ccb6f77bfdf0a1cb1358c51a9d8..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 2c314864b..f27127e97 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,44 +1,81 @@ -
-
-
{{ trans_choice('entities.comment_count', $commentTree->count(), ['count' => $commentTree->count()]) }}
+
+
+ + +
@if ($commentTree->empty() && userCan('comment-create-all')) -
+
+ class="button outline mb-m ml-auto">{{ trans('entities.comment_add') }}
@endif
-
- @foreach($commentTree->get() as $branch) +
+
+ @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')) - @include('comments.create') - @if (!$commentTree->empty()) -
- -
- @endif - @endif - @if(userCan('comment-create-all') || $commentTree->canUpdateAny()) - @push('post-app-scripts') - + @push('body-end') + @include('form.editor-translations') + @include('entities.selector-popup') @endpush @endif