X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b8c16b15a9f945b72d2ca4fe0c0172ba422199bc..refs/pull/5349/head:/resources/views/books/show.blade.php diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index e3a536fc9..dbb09fc9e 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -1,35 +1,44 @@ -@extends('tri-layout') +@extends('layouts.tri') @section('container-attrs') - id="entity-dashboard" - entity-id="{{ $book->id }}" - entity-type="book" + 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 + +@include('entities.body-tag-classes', ['entity' => $book]) + @section('body') -
- @include('partials.breadcrumbs', ['crumbs' => [ +
-

{{$book->name}}

-
-

{!! nl2br(e($book->description)) !!}

+

{{$book->name}}

+
+
{!! $book->descriptionHtml() !!}
@if(count($bookChildren) > 0) -
+
@foreach($bookChildren as $childElement) @if($childElement->isA('chapter')) - @include('chapters.list-item', ['chapter' => $childElement]) + @include('chapters.parts.list-item', ['chapter' => $childElement]) @else - @include('pages.list-item', ['page' => $childElement]) + @include('pages.parts.list-item', ['page' => $childElement]) @endif @endforeach
@else -
+

{{ trans('entities.books_empty_contents') }}

@@ -52,7 +61,7 @@ @endif
- @include('partials.entity-dashboard-search-results') + @include('entities.search-results')
@stop @@ -60,14 +69,20 @@ @section('right')
{{ trans('common.details') }}
-