X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a592eaeb918c2f2ee45a44fe413842adb26eb4ca..refs/pull/494/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..07ecdfdfc 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,72 +1,155 @@ -@extends('base') - -@section('content') - -
-
-
-
-
+@stop +@section('sidebar') + @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted) +
+

{{ trans('entities.permissions') }}

+
+
-
-
- +
+ @endif -
+ @if($page->tags->count() > 0) +
+

{{ trans('entities.page_tags') }}

+
+ + + @foreach($page->tags as $tag) + + + @if($tag->value) @endif + + @endforeach + +
value) colspan="2" @endif>{{ $tag->name }}{{$tag->value}}
+
+
+ @endif -

- Created {{$page->created_at->diffForHumans()}} @if($page->createdBy) by {{$page->createdBy->name}} @endif -
- Last Updated {{$page->updated_at->diffForHumans()}} @if($page->updatedBy) by {{$page->updatedBy->name}} @endif -

+ @if ($page->attachments->count() > 0) +
+

{{ trans('entities.pages_attachments') }}

+
+ @foreach($page->attachments as $attachment) + + @endforeach +
+
+ @endif + @if (isset($pageNav) && count($pageNav)) +
+

{{ trans('entities.pages_navigation') }}

+
+
- + @endif - @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree]) + @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) -
+
+

{{ trans('common.details') }}

+
+ @include('partials.entity-meta', ['entity' => $page])
+@stop + +@section('body') +
+ +
+
+ + + +
+
+ + @include('pages/page-display') - @include('partials/highlight') +
+
+ @include('comments/comments', ['pageId' => $page->id]) +
@stop @section('scripts')