1 <div page-comments page-id="{{ $page->id }}" ng-non-bindable class="comments-list">
2 <h3 comments-title>{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}</h3>
4 <div class="comment-container" comment-container>
5 @foreach($page->comments as $comment)
6 @include('comments.comment', ['comment' => $comment])
11 @if(userCan('comment-create-all'))
13 <div class="comment-box" comment-box style="display:none;">
14 <div class="header">@icon('comment') {{ trans('entities.comment_new') }}</div>
15 <div comment-form-reply-to class="reply-row primary-background-light text-muted" style="display: none;">
16 <button class="text-button float right" action="remove-reply-to">{{ trans('common.remove') }}</button>
17 {!! trans('entities.comment_in_reply_to', ['commentId' => '<a href=""></a>']) !!}
19 <div class="content" comment-form-container>
21 <div class="form-group">
22 <textarea name="markdown" rows="3" v-model="comment.text" placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
24 <div class="form-group text-right">
25 <button type="button" class="button outline" action="hideForm">{{ trans('common.cancel') }}</button>
26 <button type="submit" class="button pos">{{ trans('entities.comment_save') }}</button>
28 <div class="form-group loading" style="display: none;">
29 @include('partials.loading-icon', ['text' => trans('entities.comment_saving')])
35 <div class="form-group" comment-add-button>
36 <button type="button" action="addComment" class="button outline">{{ trans('entities.comment_add') }}</button>