]> BookStack Code Mirror - bookstack/blob - resources/views/comments/comments.blade.php
Update settings.php
[bookstack] / resources / views / comments / comments.blade.php
1 <div page-comments page-id="{{ $page->id }}" class="comments-list">
2     <div comment-count-bar class="grid half left-focus v-center">
3         <h5 comments-title>{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}</h5>
4         @if (count($page->comments) === 0)
5             <div class="text-right" comment-add-button-container>
6                 <button type="button" action="addComment"
7                         class="button outline">{{ trans('entities.comment_add') }}</button>
8             </div>
9         @endif
10     </div>
11
12     <div class="comment-container" comment-container>
13         @foreach($page->comments as $comment)
14             @include('comments.comment', ['comment' => $comment])
15         @endforeach
16     </div>
17
18     @if(userCan('comment-create-all'))
19         @include('comments.create')
20     @endif
21
22     @if (count($page->comments) > 0)
23         <div class="text-right" comment-add-button-container>
24             <button type="button" action="addComment"
25                     class="button outline">{{ trans('entities.comment_add') }}</button>
26         </div>
27     @endif
28
29 </div>