X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4f231d1bf088b75dca874472962a61da720d0e67..refs/pull/3433/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index b3669faa9..140d0d027 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,16 +1,37 @@ - - -
-

@{{vm.totalCommentsStr}}

-
-
-
- -
+
+ +
+
{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}
+ @if (count($page->comments) === 0 && userCan('comment-create-all')) +
+ +
+ @endif
-
-@include('comments/add', ['pageId' => $pageId]) \ No newline at end of file + +
+ @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