1 <section component="page-comments"
2 option:page-comments:page-id="{{ $page->id }}"
3 option:page-comments:created-text="{{ trans('entities.comment_created_success') }}"
4 option:page-comments:count-text="{{ trans('entities.comment_count') }}"
5 option:page-comments:wysiwyg-language="{{ $locale->htmlLang() }}"
6 option:page-comments:wysiwyg-text-direction="{{ $locale->htmlDirection() }}"
8 aria-label="{{ trans('entities.comments') }}">
10 <div refs="page-comments@comment-count-bar" class="grid half left-focus v-center no-row-gap">
11 <h5 refs="page-comments@comments-title">{{ trans_choice('entities.comment_count', $commentTree->count(), ['count' => $commentTree->count()]) }}</h5>
12 @if ($commentTree->empty() && userCan('comment-create-all'))
13 <div class="text-m-right" refs="page-comments@add-button-container">
15 refs="page-comments@add-comment-button"
16 class="button outline">{{ trans('entities.comment_add') }}</button>
21 <div refs="page-comments@comment-container" class="comment-container">
22 @foreach($commentTree->getActive() as $branch)
23 @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false])
27 @if(userCan('comment-create-all'))
28 @include('comments.create')
29 @if (!$commentTree->empty())
30 <div refs="page-comments@addButtonContainer" class="flex-container-row">
33 refs="page-comments@show-archived-button"
34 class="text-button hover-underline">{{ trans_choice('entities.comment_archived', count($commentTree->getArchived())) }}</button>
37 refs="page-comments@add-comment-button"
38 class="button outline ml-auto">{{ trans('entities.comment_add') }}</button>
43 <div refs="page-comments@archive-container" class="comment-container">
44 @foreach($commentTree->getArchived() as $branch)
45 @include('comments.comment-branch', ['branch' => $branch, 'readOnly' => false])
49 @if(userCan('comment-create-all') || $commentTree->canUpdateAny())
51 <script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}" defer></script>
52 @include('form.editor-translations')
53 @include('entities.selector-popup')