X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/46217a5880e8cef0a07fa89d5d4efdefe9c55d58..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 ac586d18e..07ecdfdfc 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,55 +1,159 @@ -@extends('base') +@extends('sidebar-layout') -@section('content') +@section('toolbar') +
+ @include('pages._breadcrumbs', ['page' => $page]) +
+
+
+ +
{{ trans('entities.export') }}
+ +
+ @if(userCan('page-update', $page)) + {{ trans('common.edit') }} + @endif + @if(userCan('page-update', $page) || userCan('restrictions-manage', $page) || userCan('page-delete', $page)) + + @endif + +
+
+@stop + +@section('sidebar') + @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted) +
+

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

+
+
+ + @if($book->restricted) + @if(userCan('restrictions-manage', $book)) + {{ trans('entities.books_permissions_active') }} + @else + {{ trans('entities.books_permissions_active') }} + @endif +
+ @endif -
- -
-

Actions

- Edit this page +
+ @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 -
-

{{$page->name}}

- {!! $page->html !!} + @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('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree]) + +
+

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

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