X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/3555/head:/resources/views/chapters/show.blade.php
diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php
index db02ebcc4..3e015616a 100644
--- a/resources/views/chapters/show.blade.php
+++ b/resources/views/chapters/show.blade.php
@@ -1,4 +1,4 @@
-@extends('tri-layout')
+@extends('layouts.tri')
@section('container-attrs')
component="entity-search"
@@ -6,10 +6,14 @@
option:entity-search:entity-type="chapter"
@stop
+@push('social-meta')
+
+@endpush
+
@section('body')
- @include('partials.breadcrumbs', ['crumbs' => [
+ @include('entities.breadcrumbs', ['crumbs' => [
$chapter->book,
$chapter,
]])
@@ -22,7 +26,7 @@
@if(count($pages) > 0)
@foreach($pages as $page)
- @include('pages.list-item', ['page' => $page])
+ @include('pages.parts.list-item', ['page' => $page])
@endforeach
@else
@@ -49,24 +53,32 @@
@endif
- @include('partials.entity-search-results')
+ @include('entities.search-results')
+ @include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous])
+
@stop
@section('right')
{{ trans('common.details') }}
-
- @include('partials.entity-meta', ['entity' => $chapter])
+
+ @include('entities.meta', ['entity' => $chapter])
@if($book->restricted)
@endif
@@ -74,9 +86,15 @@
@if($chapter->restricted)
@endif
@@ -102,6 +120,12 @@
{{ trans('common.edit') }}
@endif
+ @if(userCanOnAny('chapter-create'))
+
+ @icon('copy')
+ {{ trans('common.copy') }}
+
+ @endif
@if(userCan('chapter-update', $chapter) && userCan('chapter-delete', $chapter))
@icon('folder')
@@ -123,22 +147,27 @@
- @include('partials.entity-export-menu', ['entity' => $chapter])
+ @if(signedInUser())
+ @include('entities.favourite-action', ['entity' => $chapter])
+ @endif
+ @if(userCan('content-export'))
+ @include('entities.export-menu', ['entity' => $chapter])
+ @endif
@stop
@section('left')
- @include('partials.entity-search-form', ['label' => trans('entities.chapters_search_this')])
+ @include('entities.search-form', ['label' => trans('entities.chapters_search_this')])
@if($chapter->tags->count() > 0)
- @include('components.tag-list', ['entity' => $chapter])
+ @include('entities.tag-list', ['entity' => $chapter])
@endif
- @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
+ @include('entities.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
@stop