{{$book->name}}
-
{!! nl2br(e($book->description)) !!}
+{!! $book->descriptionHtml() !!}
@if(count($bookChildren) > 0)
@foreach($bookChildren as $childElement)
@@ -70,7 +70,7 @@
{{ trans('common.details') }}
- @include('entities.meta', ['entity' => $book])
+ @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')) @@ -168,7 +171,7 @@ @endif @if(count($activity) > 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')) @@ -168,7 +171,7 @@ @endif @if(count($activity) > 0) -
+