X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2694bb8fab9a43e914a1dbf96e6add74c9b30a31..refs/pull/3391/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index 71b7a2ef6..140d0d027 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,7 +1,23 @@ -
-
{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}
+
-
+
+
{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}
+ @if (count($page->comments) === 0 && userCan('comment-create-all')) +
+ +
+ @endif +
+ +
@foreach($page->comments as $comment) @include('comments.comment', ['comment' => $comment]) @endforeach @@ -9,6 +25,13 @@ @if(userCan('comment-create-all')) @include('comments.create') + + @if (count($page->comments) > 0) +
+ +
+ @endif @endif -
\ No newline at end of file +
\ No newline at end of file