-@extends('tri-layout')
+@extends('layouts.tri')
@section('container-attrs')
component="entity-search"
option:entity-search:entity-type="book"
@stop
+@push('social-meta')
+ <meta property="og:description" content="{{ Str::limit($book->description, 100, '...') }}">
+ @if($book->cover)
+ <meta property="og:image" content="{{ $book->getBookCover() }}">
+ @endif
+@endpush
+
@section('body')
<div class="mb-s">
- @include('partials.breadcrumbs', ['crumbs' => [
+ @include('entities.breadcrumbs', ['crumbs' => [
$book,
]])
</div>
<div class="entity-list book-contents">
@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
</div>
@endif
</div>
- @include('partials.entity-search-results')
+ @include('entities.search-results')
</main>
@stop
<div class="mb-xl">
<h5>{{ trans('common.details') }}</h5>
<div class="text-small text-muted blended-links">
- @include('partials.entity-meta', ['entity' => $book])
+ @include('entities.meta', ['entity' => $book])
@if($book->restricted)
<div class="active-restriction">
@if(userCan('restrictions-manage', $book))
<span>{{ trans('common.sort') }}</span>
</a>
@endif
+ @if(userCan('book-create-all'))
+ <a href="{{ $book->getUrl('/copy') }}" class="icon-list-item">
+ <span>@icon('copy')</span>
+ <span>{{ trans('common.copy') }}</span>
+ </a>
+ @endif
@if(userCan('restrictions-manage', $book))
<a href="{{ $book->getUrl('/permissions') }}" class="icon-list-item">
<span>@icon('lock')</span>
<hr class="primary-background">
@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])
</div>
</div>
@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)
<div class="mb-xl">
- @include('components.tag-list', ['entity' => $book])
+ @include('entities.tag-list', ['entity' => $book])
</div>
@endif
@if(count($bookParentShelves) > 0)
<div class="actions mb-xl">
<h5>{{ trans('entities.shelves_long') }}</h5>
- @include('partials.entity-list', ['entities' => $bookParentShelves, 'style' => 'compact'])
+ @include('entities.list', ['entities' => $bookParentShelves, 'style' => 'compact'])
</div>
@endif
@if(count($activity) > 0)
<div class="mb-xl">
<h5>{{ trans('entities.recent_activity') }}</h5>
- @include('partials.activity-list', ['activity' => $activity])
+ @include('common.activity-list', ['activity' => $activity])
</div>
@endif
@stop