X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e211f313704d3a0a00d8d358bd49eb310f9531c5..refs/pull/494/head:/resources/views/books/show.blade.php diff --git a/resources/views/books/show.blade.php b/resources/views/books/show.blade.php index 6a18302bc..956dbaf16 100644 --- a/resources/views/books/show.blade.php +++ b/resources/views/books/show.blade.php @@ -1,113 +1,135 @@ -@extends('base') +@extends('sidebar-layout') -@section('content') - -
-
-
-
- @include('books._breadcrumbs', ['book' => $book]) -
-
-
- @if(userCan('page-create', $book)) - {{ trans('entities.pages_new') }} - @endif - @if(userCan('chapter-create', $book)) - {{ trans('entities.chapters_new') }} - @endif +@section('toolbar') +
+ @include('books._breadcrumbs', ['book' => $book]) +
+
+
+ +
{{ trans('entities.export') }}
+ +
+ @if(userCan('page-create', $book)) + {{ trans('entities.pages_new') }} + @endif + @if(userCan('chapter-create', $book)) + {{ trans('entities.chapters_new') }} + @endif + @if(userCan('book-update', $book) || userCan('restrictions-manage', $book) || userCan('book-delete', $book)) + +
-
+ @endif
+@stop +@section('sidebar') -
-
-
+
+
+ +
+
-

{{$book->name}}

-
-

{{$book->description}}

+ @if($book->restricted) +
+

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

+
+

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

+
+
+ @endif -
-
- @if(count($bookChildren) > 0) - @foreach($bookChildren as $childElement) - @if($childElement->isA('chapter')) - @include('chapters/list-item', ['chapter' => $childElement]) - @else - @include('pages/list-item', ['page' => $childElement]) - @endif -
- @endforeach - @else -

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

-

- {{ trans('entities.books_empty_create_page') }} -   -{{ trans('entities.books_empty_or') }}-    - {{ trans('entities.books_empty_add_chapter') }} -

-
- @endif - @include('partials.entity-meta', ['entity' => $book]) -
-
-
-

{{ trans('entities.search_results') }} {{ trans('entities.search_clear') }}

-
- @include('partials/loading-icon') -
-
-
+ @if(count($activity) > 0) +
+

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

+ @include('partials/activity-list', ['activity' => $activity]) +
+ @endif + +
+

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

+
+ @include('partials.entity-meta', ['entity' => $book]) +
+
+@stop +@section('container-attrs') + id="entity-dashboard" + entity-id="{{ $book->id }}" + entity-type="book" +@stop -
+@section('body') -
-
- @if($book->restricted) -

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

+

{{$book->name}}

+
+

{!! nl2br(e($book->description)) !!}

+ @if(count($bookChildren) > 0) +
+
+ @foreach($bookChildren as $childElement) + @if($childElement->isA('chapter')) + @include('chapters/list-item', ['chapter' => $childElement]) + @else + @include('pages/list-item', ['page' => $childElement]) + @endif +
+ @endforeach +
+ @else +
+

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

+ @if(userCan('page-create', $book)) + {{ trans('entities.books_empty_create_page') }} + @endif + @if(userCan('page-create', $book) && userCan('chapter-create', $book)) +   -{{ trans('entities.books_empty_or') }}-    + @endif + @if(userCan('chapter-create', $book)) + {{ trans('entities.books_empty_add_chapter') }} @endif -

- @endif - -
-

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

- @include('partials/activity-list', ['activity' => Activity::entityActivity($book, 20, 0)])
+ @endif + +
+
+

{{ trans('entities.search_results') }} {{ trans('entities.search_clear') }}

+
+ @include('partials/loading-icon')
+
-@stop \ No newline at end of file +@stop