X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2a882a43ffc0a9d94f6936d1d557a7fec65e62d2..refs/pull/2511/head:/resources/views/books/index.blade.php diff --git a/resources/views/books/index.blade.php b/resources/views/books/index.blade.php index b1998da3b..81fb66cfc 100644 --- a/resources/views/books/index.blade.php +++ b/resources/views/books/index.blade.php @@ -1,5 +1,9 @@ @extends('tri-layout') +@section('body') + @include('books.list', ['books' => $books, 'view' => $view]) +@stop + @section('left') @if($recents)
@@ -27,22 +31,19 @@
@stop -@section('body') - @include('books.list', ['books' => $books, 'bookViewType' => $booksViewType]) -@stop - @section('right') -
-
Actions
+
+
{{ trans('common.actions') }}
- @if($currentUser->can('book-create-all')) - - @icon('add') + @if(user()->can('book-create-all')) + + @icon('add') {{ trans('entities.books_create') }} @endif - @include('books.view-toggle', ['booksViewType' => $booksViewType]) + + @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])