{{$book->name}}
+{!! nl2br(e($book->description)) !!}
+ @if(count($bookChildren) > 0) +X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7f902e41c7a6a18a754bb889c2655aa4fba736ec..refs/pull/3406/head:/resources/views/books/show.blade.php diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index 97942ee67..5263bc810 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -1,128 +1,169 @@ -@extends('base') +@extends('layouts.tri') -@section('content') +@section('container-attrs') + component="entity-search" + option:entity-search:entity-id="{{ $book->id }}" + option:entity-search:entity-type="book" +@stop + +@push('social-meta') + + @if($book->cover) + + @endif +@endpush + +@section('body') + +
{!! nl2br(e($book->description)) !!}
+ @if(count($bookChildren) > 0) +{{ trans('entities.books_empty_contents') }}
+ +{!! nl2br(e($book->description)) !!}
- -{{ trans('entities.books_empty_contents') }}
-- @if(userCan('page-create', $book)) - {{ trans('entities.books_empty_create_page') }} - @endif - @if(userCan('page-create', $book) && userCan('chapter-create', $book)) - -{{ trans('entities.books_empty_or') }}- - @endif - @if(userCan('chapter-create', $book)) - {{ trans('entities.books_empty_add_chapter') }} - @endif -
-- @if(userCan('restrictions-manage', $book)) - {{ trans('entities.books_permissions_active') }} - @else - {{ trans('entities.books_permissions_active') }} - @endif -
- @endif - - - -