- <div class="form-group" comment-add-button>
- <button type="button" action="addComment" class="button outline float right">{{ trans('entities.comment_add') }}</button>
- </div>
+ <p class="text-center text-muted italic empty-state">{{ trans('entities.comment_none') }}</p>
+
+ @if(userCan('comment-create-all'))
+ @include('comments.create')
+ @if (!$commentTree->empty())
+ <div refs="page-comments@addButtonContainer" class="ml-m flex-container-row">
+ <button type="button"
+ refs="page-comments@add-comment-button"
+ class="button outline mb-m ml-auto">{{ trans('entities.comment_add') }}</button>
+ </div>
+ @endif
+ @endif
+ </div>
+
+ <div refs="page-comments@archive-container"
+ id="comment-tab-panel-archived"
+ tabindex="0"
+ role="tabpanel"
+ aria-labelledby="comment-tab-archived"
+ hidden="hidden"
+ class="comment-container no-outline">
+ @foreach($commentTree->getArchived() as $branch)
+ @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false])
+ @endforeach
+ <p class="text-center text-muted italic empty-state">{{ trans('entities.comment_none') }}</p>
+ </div>
+
+ @if(userCan('comment-create-all') || $commentTree->canUpdateAny())
+ @push('body-end')
+ @include('form.editor-translations')
+ @include('entities.selector-popup')
+ @endpush