X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/d1a4ff930872fd77dc18fae02870ec057098b36b..refs/pull/2115/head:/resources/views/comments/comments.blade.php diff --git a/resources/views/comments/comments.blade.php b/resources/views/comments/comments.blade.php index a5d6d3d6e..fc81f13ee 100644 --- a/resources/views/comments/comments.blade.php +++ b/resources/views/comments/comments.blade.php @@ -1,5 +1,21 @@ -
-

{{ trans_choice('entities.comment_count', count($page->comments), ['count' => count($page->comments)]) }}

+
+ + @exposeTranslations([ + 'entities.comment_updated_success', + 'entities.comment_deleted_success', + 'entities.comment_created_success', + 'entities.comment_count', + ]) + +
+
{{ 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) @@ -7,34 +23,15 @@ @endforeach
- @if(userCan('comment-create-all')) + @include('comments.create') - \ No newline at end of file +
\ No newline at end of file