BookStack/resources/views/comments/comment-branch.blade.php
Dan Brown 154924cc0c
Comments: updated component and split out code
Split out comment component code so single-comment actions (delete, edit) are handled within their own compontent.
Modernised existing component code.
2023-06-07 17:47:37 +01:00

17 lines
595 B
PHP

<div class="comment-branch">
<div class="mb-m">
@include('comments.comment', ['comment' => $branch['comment']])
</div>
@if(count($branch['children']) > 0)
<div class="flex-container-row">
<div class="pb-m">
<div class="comment-thread-indicator fill-height"></div>
</div>
<div class="flex">
@foreach($branch['children'] as $childBranch)
@include('comments.comment-branch', ['branch' => $childBranch])
@endforeach
</div>
</div>
@endif
</div>