X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3ac34b584930aad5625d29ca6c2e59b85e9d2ef8..refs/pull/2274/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index 3448a164a..48c88434e 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,46 +1,31 @@ -@extends('sidebar-layout') +@extends('tri-layout') -@section('toolbar') -
- @include('pages._breadcrumbs', ['page' => $page]) +@section('body') + + -
-
- -
@icon('export'){{ trans('entities.export') }}
- -
- @if(userCan('page-update', $page)) - @icon('edit'){{ trans('common.edit') }} - @endif - @if(userCan('page-update', $page) || userCan('restrictions-manage', $page) || userCan('page-delete', $page)) - - @endif +
+
+ @include('pages.pointer', ['page' => $page]) + @include('pages.page-display')
-
+ + + @if ($commentsEnabled) + + @endif @stop -@section('sidebar') +@section('left') @if($page->tags->count() > 0)
@@ -49,36 +34,37 @@ @endif @if ($page->attachments->count() > 0) -
-

@icon('attach') {{ trans('entities.pages_attachments') }}

+
+
{{ trans('entities.pages_attachments') }}
- @foreach($page->attachments as $attachment) - - @endforeach + @include('attachments.list', ['attachments' => $page->attachments])
@endif @if (isset($pageNav) && count($pageNav)) -
-

@icon('open-book') {{ trans('entities.pages_navigation') }}

+
+ @endif -
-

@icon('info') {{ trans('common.details') }}

- - @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) +
+
{{ trans('common.actions') }}
-@stop +
-@section('body') -
+ {{--User Actions--}} + @if(userCan('page-update', $page)) + + @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') + {{ trans('common.move') }} + + @endif + + @icon('history') + {{ trans('entities.revisions') }} + + @endif + @if(userCan('restrictions-manage', $page)) + + @icon('lock') + {{ trans('entities.permissions') }} + + @endif + @if(userCan('page-delete', $page)) + + @icon('delete') + {{ trans('common.delete') }} + + @endif -
-
- @icon('link') @icon('include', ['style' => 'display:none;']) - - -
-
+
- @include('pages/page-display') + {{--Export--}} + @include('partials.entity-export-menu', ['entity' => $page]) +
- @if ($commentsEnabled) -
- @include('comments/comments', ['page' => $page]) -
- @endif @stop