X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/47d82a1ac2ec323295eb57ffe3beaf513e841496..refs/pull/2376/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index 24a8b3e23..140d0d027 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,11 +1,37 @@ -
-

@{{totalCommentsStr}}

-
- -
- - -
-
\ No newline at end of file +
+ +
+
{{ 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 +
+ + @if(userCan('comment-create-all')) + @include('comments.create') + + @if (count($page->comments) > 0) +
+ +
+ @endif + @endif + +
\ No newline at end of file