X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b00b319e83e648ee5cf3bf9a882e67e57c7d6707..refs/pull/3555/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index 510d69019..2a71c6021 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,34 +1,36 @@ -@extends('tri-layout') +@extends('layouts.tri') + +@push('social-meta') + +@endpush @section('body') -
- @include('pages._breadcrumbs', ['page' => $page]) + -
-
- -
-
- @icon('link') @icon('include', ['style' => 'display:none;']) - - - - - @if(userCan('page-update', $page)) - @icon('edit') - @endif -
-
- - @include('pages.page-display') +
+
+ @include('pages.parts.pointer', ['page' => $page]) + @include('pages.parts.page-display')
-
+ + + @include('entities.sibling-navigation', ['next' => $next, 'previous' => $previous]) @if ($commentsEnabled) -
+ @if(($previous || $next)) +
+
+
+ @endif + + @@ -39,49 +41,56 @@ @if($page->tags->count() > 0)
- @include('components.tag-list', ['entity' => $page]) + @include('entities.tag-list', ['entity' => $page])
@endif @if ($page->attachments->count() > 0) -
+
{{ trans('entities.pages_attachments') }}
- @foreach($page->attachments as $attachment) - - @endforeach + @include('attachments.list', ['attachments' => $page->attachments])
@endif @if (isset($pageNav) && count($pageNav)) - + @endif + @include('entities.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) +@stop + +@section('right')
{{ trans('common.details') }}
- - @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) -@stop - -@section('right')
-
Actions
+
{{ trans('common.actions') }}
- {{--Export--}} - {{--User Actions--}} @if(userCan('page-update', $page)) @@ -135,10 +147,14 @@ @icon('edit') {{ trans('common.edit') }} + @endif + @if(userCanOnAny('page-create')) @icon('copy') {{ trans('common.copy') }} + @endif + @if(userCan('page-update', $page)) @if(userCan('page-delete', $page)) @icon('folder') @@ -162,6 +178,15 @@ {{ trans('common.delete') }} @endif + +
+ + @if(signedInUser()) + @include('entities.favourite-action', ['entity' => $page]) + @endif + @if(userCan('content-export')) + @include('entities.export-menu', ['entity' => $page]) + @endif