X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7f95b51b00d0d5fa1e7bcf5574f2d58bddcbd504..refs/pull/2328/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index 282ae21d2..48c88434e 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,5 +1,29 @@ @extends('tri-layout') -@section('container-classes', 'mt-xl') + +@section('body') + + + +
+
+ @include('pages.pointer', ['page' => $page]) + @include('pages.page-display') +
+
+ + @if ($commentsEnabled) + + @endif +@stop @section('left') @@ -10,36 +34,37 @@ @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('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) +@stop + +@section('right')
{{ trans('common.details') }}
- -
- - @include('partials.book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) -@stop - -@section('body') - -
- @include('pages._breadcrumbs', ['page' => $page]) -
-
-
- -
-
- @icon('link') @icon('include', ['style' => 'display:none;']) - - - - - @if(userCan('page-update', $page)) - @icon('edit') - @endif + @if($page->template) +
+ @icon('template'){{ trans('entities.pages_is_template') }}
-
- - @include('pages.page-display') + @endif
- @if ($commentsEnabled) -
- @include('comments.comments', ['page' => $page]) -
-
- @endif -@stop - -@section('right')
-
Actions
+
{{ trans('common.actions') }}
- {{--Export--}} - {{--User Actions--}} @if(userCan('page-update', $page)) - @icon('edit') + @icon('edit') {{ trans('common.edit') }} + @endif + @if(userCanOnAny('page-create')) - @icon('copy') + @icon('copy') {{ trans('common.copy') }} - - @icon('folder') - {{ trans('common.move') }} - + @endif + @if(userCan('page-update', $page)) + @if(userCan('page-delete', $page)) + + @icon('folder') + {{ trans('common.move') }} + + @endif - @icon('history') + @icon('history') {{ trans('entities.revisions') }} @endif @if(userCan('restrictions-manage', $page)) - @icon('lock') + @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('page-delete', $page)) - @icon('delete') + @icon('delete') {{ trans('common.delete') }} @endif + +
+ + {{--Export--}} + @include('partials.entity-export-menu', ['entity' => $page])