@include('pages.parts.page-display')
+ @include('pages.parts.pointer', ['page' => $page])
@include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous])
- @if ($commentsEnabled)
- @if(($previous || $next))
-
-
-
- @endif
-
- -
- @include('comments.comments', ['page' => $page])
+ @if ($commentTree->enabled())
+
{{ $navItem['text'] }}
-
+
@endforeach
@@ -77,9 +75,9 @@
+ @include('comments.comments', ['commentTree' => $commentTree, 'page' => $page])
@endif
@@ -62,7 +60,7 @@
@foreach($pageNav as $navItem)
{{ trans('common.details') }}
- @include('entities.meta', ['entity' => $page])
+ @include('entities.meta', ['entity' => $page, 'watchOptions' => $watchOptions])
- @if($book->restricted)
+ @if($book->hasPermissions())
@if(userCan('restrictions-manage', $book))
@@ -95,7 +93,7 @@
@endif
- @if($page->chapter && $page->chapter->restricted)
+ @if($page->chapter && $page->chapter->hasPermissions())
@if(userCan('restrictions-manage', $page->chapter))
@@ -111,7 +109,7 @@
@endif
- @if($page->restricted)
+ @if($page->hasPermissions())
@if(userCan('restrictions-manage', $page))
@@ -139,41 +137,41 @@
{{ trans('common.actions') }}
-
+
{{--User Actions--}}
@if(userCan('page-update', $page))
-
+
@icon('edit')
{{ trans('common.edit') }}
@endif
- @if(userCanOnAny('page-create'))
-
+ @if(userCanOnAny('create', \BookStack\Entities\Models\Book::class) || userCanOnAny('create', \BookStack\Entities\Models\Chapter::class) || userCan('page-create-all') || userCan('page-create-own'))
+
@icon('copy')
{{ trans('common.copy') }}
@endif
@if(userCan('page-update', $page))
@if(userCan('page-delete', $page))
-
+
@icon('folder')
{{ trans('common.move') }}
@endif
-
- @icon('history')
- {{ trans('entities.revisions') }}
-
@endif
+
+ @icon('history')
+ {{ trans('entities.revisions') }}
+
@if(userCan('restrictions-manage', $page))
-
+
@icon('lock')
{{ trans('entities.permissions') }}
@endif
@if(userCan('page-delete', $page))
-
+
@icon('delete')
{{ trans('common.delete') }}
@@ -181,7 +179,10 @@
- @if(signedInUser()) + @if($watchOptions->canWatch() && !$watchOptions->isWatching()) + @include('entities.watch-action', ['entity' => $page]) + @endif + @if(!user()->isGuest()) @include('entities.favourite-action', ['entity' => $page]) @endif @if(userCan('content-export'))
- @if(signedInUser()) + @if($watchOptions->canWatch() && !$watchOptions->isWatching()) + @include('entities.watch-action', ['entity' => $page]) + @endif + @if(!user()->isGuest()) @include('entities.favourite-action', ['entity' => $page]) @endif @if(userCan('content-export'))