]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/show.blade.php
Comments: Updated to show as nested threads
[bookstack] / resources / views / pages / show.blade.php
index 2cbc7fe470bd807517a472e385ba1d66c0ce2dae..fa6b1a2cde62259de6399e1c6652ecd55e088bde 100644 (file)
@@ -27,7 +27,7 @@
 
     @include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous])
 
-    @if ($commentsEnabled)
+    @if ($commentTree->enabled())
         @if(($previous || $next))
             <div class="px-xl">
                 <hr class="darker">
@@ -35,7 +35,7 @@
         @endif
 
         <div class="px-xl comments-container mb-l print-hidden">
-            @include('comments.comments', ['page' => $page])
+            @include('comments.comments', ['commentTree' => $commentTree, 'page' => $page])
             <div class="clearfix"></div>
         </div>
     @endif