X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b94b945fb03e21a1997cfe6e50148967586cb26d..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 cbafdb436..5263bc810 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -1,35 +1,42 @@ -@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 + @section('body')
- @include('partials.breadcrumbs', ['crumbs' => [ + @include('entities.breadcrumbs', ['crumbs' => [ $book, ]])
-

{{$book->name}}

-
-

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

+

{{$book->name}}

+
+

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

@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,18 +59,16 @@ @endif
- @include('partials.entity-dashboard-search-results') + @include('entities.search-results')
@stop - @section('right') -
{{ trans('common.details') }}
-
{{ trans('common.actions') }}
@@ -129,18 +144,25 @@ @section('left') - @include('partials.entity-dashboard-search-box') + @include('entities.search-form', ['label' => trans('entities.books_search_this')]) @if($book->tags->count() > 0)
- @include('components.tag-list', ['entity' => $book]) + @include('entities.tag-list', ['entity' => $book]) +
+ @endif + + @if(count($bookParentShelves) > 0) +
+
{{ trans('entities.shelves_long') }}
+ @include('entities.list', ['entities' => $bookParentShelves, 'style' => 'compact'])
@endif @if(count($activity) > 0)
{{ trans('entities.recent_activity') }}
- @include('partials.activity-list', ['activity' => $activity]) + @include('common.activity-list', ['activity' => $activity])
@endif @stop