{{$book->name}}
-
{!! nl2br(e($book->description)) !!}
+{!! $book->descriptionHtml() !!}
@if(count($bookChildren) > 0)
@foreach($bookChildren as $childElement)
@@ -70,8 +70,8 @@
{{ trans('common.details') }}
- @include('entities.meta', ['entity' => $book])
- @if($book->restricted)
+ @include('entities.meta', ['entity' => $book, 'watchOptions' => $watchOptions])
+ @if($book->hasPermissions())
@if(userCan('restrictions-manage', $book))
@@ -91,16 +91,16 @@
{{ trans('common.actions') }}
-
+
@if(userCan('page-create', $book))
-
+
@icon('add')
{{ trans('entities.pages_new') }}
@endif
@if(userCan('chapter-create', $book))
-
+
@icon('add')
{{ trans('entities.chapters_new') }}
@@ -109,29 +109,29 @@
@if(userCan('book-update', $book)) - + @icon('edit') {{ trans('common.edit') }} - + @icon('sort') {{ trans('common.sort') }} @endif @if(userCan('book-create-all')) - + @icon('copy') {{ trans('common.copy') }} @endif @if(userCan('restrictions-manage', $book)) - + @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('book-delete', $book)) - + @icon('delete') {{ trans('common.delete') }} @@ -139,7 +139,10 @@
- @if(signedInUser()) + @if($watchOptions->canWatch() && !$watchOptions->isWatching()) + @include('entities.watch-action', ['entity' => $book]) + @endif + @if(!user()->isGuest()) @include('entities.favourite-action', ['entity' => $book]) @endif @if(userCan('content-export')) @@ -162,13 +165,13 @@ @if(count($bookParentShelves) > 0)
@if(userCan('book-update', $book)) - + @icon('edit') {{ trans('common.edit') }} - + @icon('sort') {{ trans('common.sort') }} @endif @if(userCan('book-create-all')) - + @icon('copy') {{ trans('common.copy') }} @endif @if(userCan('restrictions-manage', $book)) - + @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('book-delete', $book)) - + @icon('delete') {{ trans('common.delete') }} @@ -139,7 +139,10 @@
- @if(signedInUser()) + @if($watchOptions->canWatch() && !$watchOptions->isWatching()) + @include('entities.watch-action', ['entity' => $book]) + @endif + @if(!user()->isGuest()) @include('entities.favourite-action', ['entity' => $book]) @endif @if(userCan('content-export')) @@ -162,13 +165,13 @@ @if(count($bookParentShelves) > 0)
-
@endif
@if(count($activity) > 0)
- {{ trans('entities.shelves_long') }}
+{{ trans('entities.shelves') }}
@include('entities.list', ['entities' => $bookParentShelves, 'style' => 'compact'])
+