]> BookStack Code Mirror - bookstack/blob - resources/views/comments/comments.blade.php
cf2affc152c0742fd1f1a6663d0546b726d75620
[bookstack] / resources / views / comments / comments.blade.php
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>
3
4     <div class="comment-container" comment-container>
5         @foreach($page->comments as $comment)
6             @include('comments.comment', ['comment' => $comment])
7         @endforeach
8     </div>
9
10
11     @if(userCan('comment-create-all'))
12
13         <div class="comment-box" comment-box style="display:none;">
14             <div class="header"><i class="zmdi zmdi-comment"></i> {{ trans('entities.comment_new') }}</div>
15             <div class="content" comment-form-container>
16                 <form novalidate>
17                     <div class="form-group">
18                         <textarea name="markdown" rows="3" v-model="comment.text" placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
19                     </div>
20                     <div class="form-group text-right">
21                         <button type="button" class="button outline" action="hideForm">{{ trans('common.cancel') }}</button>
22                         <button type="submit" class="button pos">{{ trans('entities.comment_save') }}</button>
23                     </div>
24                 </form>
25             </div>
26         </div>
27
28         <div class="form-group" comment-add-button>
29             <button type="button" action="addComment" class="button outline">Add Comment</button>
30         </div>
31     @endif
32
33 </div>