X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/04287745e40b951252a67b048fdff87ef613075b..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 db2f1462e..48c88434e 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,50 +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-view', $page) && userCanOnAny('page-create')) || 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)
@@ -53,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-wrap-classes', 'flex-fill columns') + {{--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 -@section('body') +
-
- -
-
- @icon('link') @icon('include', ['style' => 'display:none;']) - - - - - @if(userCan('page-update', $page)) - @icon('edit') - @endif -
+ {{--Export--}} + @include('partials.entity-export-menu', ['entity' => $page])
- @include('pages/page-display')
- - @if ($commentsEnabled) -
- @include('comments/comments', ['page' => $page]) -
- @endif @stop