X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/80865b30a5d6a82e86d21e272ae58977d4430a64..refs/pull/263/head:/resources/views/chapters/show.blade.php diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php index f053edc1c..93eee6424 100644 --- a/resources/views/chapters/show.blade.php +++ b/resources/views/chapters/show.blade.php @@ -2,27 +2,35 @@ @section('content') -
+
-
- +
+ @include('chapters._breadcrumbs', ['chapter' => $chapter])
-
+
@if(userCan('page-create', $chapter)) - New Page + {{ trans('entities.pages_new') }} @endif @if(userCan('chapter-update', $chapter)) - Edit - @endif - @if(userCan('restrictions-manage', $chapter)) - Restrict + {{ trans('common.edit') }} @endif - @if(userCan('chapter-delete', $chapter)) - Delete + @if(userCan('chapter-update', $chapter) || userCan('restrictions-manage', $chapter) || userCan('chapter-delete', $chapter)) + @endif
@@ -47,20 +55,22 @@
@else
-

No pages are currently in this chapter.

+

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

- Create a new page -   -or-    - Sort the current book + @if(userCan('page-create', $chapter)) + {{ trans('entities.books_empty_create_page') }} + @endif + @if(userCan('page-create', $chapter) && userCan('book-update', $book)) +   -{{ trans('entities.books_empty_or') }}-    + @endif + @if(userCan('book-update', $book)) + {{ trans('entities.books_empty_sort_current_book') }} + @endif


@endif -

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

+ @include('partials.entity-meta', ['entity' => $chapter])
@@ -68,19 +78,20 @@
@if($book->restricted) - @if(userCan('restrictions-manage', $book)) - Book Restricted - @else - Book Restricted - @endif -
+

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

@endif @if($chapter->restricted) @if(userCan('restrictions-manage', $chapter)) - Chapter Restricted + {{ trans('entities.chapters_permissions_active') }} @else - Chapter Restricted + {{ trans('entities.chapters_permissions_active') }} @endif @endif