X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4b9f6beb376fc6b0c31af77d96ff0842bcdd53bc..refs/pull/5725/head:/resources/views/comments/comment-branch.blade.php diff --git a/resources/views/comments/comment-branch.blade.php b/resources/views/comments/comment-branch.blade.php index d64dd4ade..658c33219 100644 --- a/resources/views/comments/comment-branch.blade.php +++ b/resources/views/comments/comment-branch.blade.php @@ -1,17 +1,18 @@ -
-
- @include('comments.comment', ['comment' => $branch['comment']]) +{{-- +$branch CommentTreeNode +--}} +
+
+ @include('comments.comment', ['comment' => $branch->comment])
- @if(count($branch['children']) > 0) -
-
-
-
-
- @foreach($branch['children'] as $childBranch) - @include('comments.comment-branch', ['branch' => $childBranch]) - @endforeach -
+
+
+
- @endif +
+ @foreach($branch->children as $childBranch) + @include('comments.comment-branch', ['branch' => $childBranch]) + @endforeach +
+
\ No newline at end of file