X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/05666efda9a51f245d23fc33e65cd598180e97da..refs/pull/494/head:/resources/views/chapters/show.blade.php diff --git a/resources/views/chapters/show.blade.php b/resources/views/chapters/show.blade.php index 0bb61cebc..e5a044aa7 100644 --- a/resources/views/chapters/show.blade.php +++ b/resources/views/chapters/show.blade.php @@ -1,103 +1,139 @@ -@extends('base') +@extends('sidebar-layout') -@section('content') - -
+ @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)) + {{ trans('entities.chapters_permissions_active') }} + @else + {{ trans('entities.chapters_permissions_active') }} + @endif +
+ @endif{{ $chapter->description }}
+{!! nl2br(e($chapter->description)) !!}
- @if(count($pages) > 0) -No pages are currently in this chapter.
+ @foreach($pages as $page) + @include('pages/list-item', ['page' => $page]) +{{ trans('entities.chapters_empty') }}
@if(userCan('page-create', $chapter)) - Create a new page + {{ trans('entities.books_empty_create_page') }} @endif @if(userCan('page-create', $chapter) && userCan('book-update', $book)) - -or- + -{{ trans('entities.books_empty_or') }}- @endif @if(userCan('book-update', $book)) - Sort the current book + {{ trans('entities.books_empty_sort_current_book') }} @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
-