@if($book->restricted)
@if(userCan('restrictions-manage', $book))
-
{{ trans('entities.books_permissions_active') }}
+
@icon('lock'){{ trans('entities.books_permissions_active') }}
@else
-
{{ trans('entities.books_permissions_active') }}
+ @icon('lock'){{ trans('entities.books_permissions_active') }}
@endif
@endif
@if($page->chapter && $page->chapter->restricted)
@if(userCan('restrictions-manage', $page->chapter))
-
{{ trans('entities.chapters_permissions_active') }}
+
@icon('lock'){{ trans('entities.chapters_permissions_active') }}
@else
-
{{ trans('entities.chapters_permissions_active') }}
+ @icon('lock'){{ trans('entities.chapters_permissions_active') }}
@endif
@endif
@if($page->restricted)
@if(userCan('restrictions-manage', $page))
-
{{ trans('entities.pages_permissions_active') }}
+
@icon('lock'){{ trans('entities.pages_permissions_active') }}
@else
-
{{ trans('entities.pages_permissions_active') }}
+ @icon('lock'){{ trans('entities.pages_permissions_active') }}
@endif
@endif
@@ -79,29 +80,20 @@
@if($page->tags->count() > 0)
-
{{ trans('entities.page_tags') }}
+
@icon('tag') {{ trans('entities.page_tags') }}
-
+ @include('components.tag-list', ['entity' => $page])
@endif
@if ($page->attachments->count() > 0)
-
{{ trans('entities.pages_attachments') }}
+
@icon('attach') {{ trans('entities.pages_attachments') }}
@foreach($page->attachments as $attachment)
@endforeach
@@ -110,7 +102,7 @@
@if (isset($pageNav) && count($pageNav))
-
{{ trans('entities.pages_navigation') }}
+
@icon('open-book') {{ trans('entities.pages_navigation') }}
@endif
- @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
-
-
{{ trans('common.details') }}
+
@icon('info') {{ trans('common.details') }}
@include('partials.entity-meta', ['entity' => $page])
+
+ @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
+
@stop
@section('body')
-
+
@include('pages/page-display')
-
-
- @include('comments/comments', ['page' => $page])
-
-@stop
-
-@section('scripts')
-
+ @if ($commentsEnabled)
+
+ @include('comments/comments', ['page' => $page])
+
+ @endif
@stop