]> BookStack Code Mirror - bookstack/blob - resources/views/comments/comments.blade.php
Show users link in top nav if user is signed in and only manages users
[bookstack] / resources / views / comments / comments.blade.php
1 <div page-comments page-id="{{ $page->id }}" class="comments-list">
2   <h5 comments-title class="float left">{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}</h5>
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     @if(userCan('comment-create-all'))
11
12         <div class="comment-box" comment-box style="display:none;">
13             <div class="header">@icon('comment') {{ trans('entities.comment_new') }}</div>
14             <div comment-form-reply-to class="reply-row primary-background-light text-muted" style="display: none;">
15                 <button class="text-button float right" action="remove-reply-to">{{ trans('common.remove') }}</button>
16                 {!! trans('entities.comment_in_reply_to', ['commentId' => '<a href=""></a>']) !!}
17             </div>
18             <div class="content" comment-form-container>
19                 <form novalidate>
20                     <div class="form-group">
21                         <textarea name="markdown" rows="3" v-model="comment.text" placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
22                     </div>
23                     <div class="form-group text-right">
24                         <button type="button" class="button outline" action="hideForm">{{ trans('common.cancel') }}</button>
25                         <button type="submit" class="button pos">{{ trans('entities.comment_save') }}</button>
26                     </div>
27                     <div class="form-group loading" style="display: none;">
28                         @include('partials.loading-icon', ['text' => trans('entities.comment_saving')])
29                     </div>
30                 </form>
31             </div>
32         </div>
33
34         <div class="form-group" comment-add-button>
35             <button type="button" action="addComment" class="button outline float right">{{ trans('entities.comment_add') }}</button>
36         </div>
37     @endif
38
39 </div>