X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fff5bbcee458992443e3732fbcbbbe34f765fcc3..refs/pull/780/head:/resources/views/pages/show.blade.php diff --git a/resources/views/pages/show.blade.php b/resources/views/pages/show.blade.php index af85075a2..f11da0f4f 100644 --- a/resources/views/pages/show.blade.php +++ b/resources/views/pages/show.blade.php @@ -1,127 +1,158 @@ -@extends('base') - -@section('content') - -
-
-
-
- -
-
-
- -
Export
- -
+@extends('sidebar-layout') + +@section('toolbar') +
+ @include('pages._breadcrumbs', ['page' => $page]) +
+
+
+ +
@icon('export'){{ trans('entities.export') }}
+ +
+ @if(userCan('page-update', $page)) + @icon('edit'){{ trans('common.edit') }} + @endif + @if(userCan('page-update', $page) || userCan('restrictions-manage', $page) || userCan('page-delete', $page)) + + @if(userCan('page-delete', $page)) +
  • @icon('delete'){{ trans('common.delete') }}
  • + @endif +
    -
    + @endif +
    +@stop +@section('sidebar') + @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted) +
    +

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

    +
    +
    + + @if($book->restricted) + @if(userCan('restrictions-manage', $book)) + @icon('lock'){{ trans('entities.books_permissions_active') }} + @else + @icon('lock'){{ trans('entities.books_permissions_active') }} + @endif +
    + @endif -
    -
    - +
    + @endif + + @if($page->tags->count() > 0) +
    +

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

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

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

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

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

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