X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a592eaeb918c2f2ee45a44fe413842adb26eb4ca..refs/pull/806/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index cc01a139f..288de3d84 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,76 +1,148 @@ -@extends('base') - -@section('content') - -
-
-
-
-
+@stop +@section('sidebar') + @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted) +
+

@icon('permission') {{ trans('entities.permissions') }}

+
+
-
-
- - + @endif - @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree]) + @if($page->tags->count() > 0) +
+

@icon('tag') {{ trans('entities.page_tags') }}

+
+ @include('components.tag-list', ['entity' => $page]) +
+
+ @endif + @if ($page->attachments->count() > 0) +
+

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

+
+ @endif + + @if (isset($pageNav) && count($pageNav)) +
+

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

+
+ +
+
+ @endif + +
+

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

+
+ @include('partials.entity-meta', ['entity' => $page]) +
- @include('partials/highlight') + @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) + @stop -@section('scripts') - +@section('body') +
+ +
+
+ @icon('link') @icon('include', ['style' => 'display:none;']) + + +
+
+ + @include('pages/page-display') + +
+ @if ($commentsEnabled) +
+ @include('comments/comments', ['page' => $page]) +
+ @endif @stop