X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3ca149137e5b33422f82456e1512fba417322968..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 b850127ff..5263bc810 100644
--- a/resources/views/books/show.blade.php
+++ b/resources/views/books/show.blade.php
@@ -1,4 +1,4 @@
-@extends('tri-layout')
+@extends('layouts.tri')
@section('container-attrs')
component="entity-search"
@@ -6,10 +6,17 @@
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,
]])
@@ -22,9 +29,9 @@
@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
@@ -52,7 +59,7 @@
@endif
- @include('partials.entity-search-results')
+ @include('entities.search-results')
@stop
@@ -61,7 +68,7 @@
{{ trans('common.details') }}
- @include('partials.entity-meta', ['entity' => $book])
+ @include('entities.meta', ['entity' => $book])
@if($book->restricted)
@if(userCan('restrictions-manage', $book))
@@ -103,6 +110,12 @@
{{ trans('common.sort') }}
@endif
+ @if(userCan('book-create-all'))
+
+ @icon('copy')
+ {{ trans('common.copy') }}
+
+ @endif
@if(userCan('restrictions-manage', $book))
@icon('lock')
@@ -119,9 +132,11 @@
@if(signedInUser())
- @include('partials.entity-favourite-action', ['entity' => $book])
+ @include('entities.favourite-action', ['entity' => $book])
+ @endif
+ @if(userCan('content-export'))
+ @include('entities.export-menu', ['entity' => $book])
@endif
- @include('partials.entity-export-menu', ['entity' => $book])
@@ -129,25 +144,25 @@
@section('left')
- @include('partials.entity-search-form', ['label' => trans('entities.books_search_this')])
+ @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('partials.entity-list', ['entities' => $bookParentShelves, 'style' => 'compact'])
+ @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