X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/07b889547d28e68e5fc8f923c166bd607da17ad7..refs/pull/3918/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index ff4db2eec..e05d9d739 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,38 +1,40 @@ -@extends('tri-layout') +@extends('layouts.tri') + +@push('social-meta') + +@endpush + +@include('entities.body-tag-classes', ['entity' => $page]) @section('body') -
- @include('partials.breadcrumbs', ['crumbs' => [ + -
-
- -
-
- @icon('link') @icon('include', ['style' => 'display:none;']) - - - - - @if(userCan('page-update', $page)) - @icon('edit') - @endif -
-
- - @include('pages.page-display') +
+
+ @include('pages.parts.page-display')
-
+ @include('pages.parts.pointer', ['page' => $page]) + + + @include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous]) @if ($commentsEnabled) -
+ @if(($previous || $next)) +
+
+
+ @endif + + @@ -43,7 +45,7 @@ @if($page->tags->count() > 0)
- @include('components.tag-list', ['entity' => $page]) + @include('entities.tag-list', ['entity' => $page])
@endif @@ -51,113 +53,131 @@
{{ trans('entities.pages_attachments') }}
- @foreach($page->attachments as $attachment) - - @endforeach + @include('attachments.list', ['attachments' => $page->attachments])
@endif @if (isset($pageNav) && count($pageNav)) - + @endif - @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) + @include('entities.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) @stop @section('right')
{{ trans('common.details') }}
-
-
Actions
+
{{ trans('common.actions') }}
{{--User Actions--}} @if(userCan('page-update', $page)) - + @icon('edit') {{ trans('common.edit') }} @endif - @if(userCanOnAny('page-create')) - + @if(userCanOnAny('create', \BookStack\Entities\Models\Book::class) || userCanOnAny('create', \BookStack\Entities\Models\Chapter::class) || userCan('page-create-all') || userCan('page-create-own')) + @icon('copy') {{ trans('common.copy') }} @endif @if(userCan('page-update', $page)) @if(userCan('page-delete', $page)) - + @icon('folder') {{ trans('common.move') }} @endif - - @icon('history') - {{ trans('entities.revisions') }} - @endif + + @icon('history') + {{ trans('entities.revisions') }} + @if(userCan('restrictions-manage', $page)) - + @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('page-delete', $page)) - + @icon('delete') {{ trans('common.delete') }} @@ -165,18 +185,12 @@
- {{--Export--}} - + @if(signedInUser()) + @include('entities.favourite-action', ['entity' => $page]) + @endif + @if(userCan('content-export')) + @include('entities.export-menu', ['entity' => $page]) + @endif