X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7f95b51b00d0d5fa1e7bcf5574f2d58bddcbd504..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 fcf9cb4bb..81fb66cfc 100644 --- a/resources/views/books/index.blade.php +++ b/resources/views/books/index.blade.php @@ -1,6 +1,8 @@ @extends('tri-layout') -@section('container-classes', 'mt-xl') +@section('body') + @include('books.list', ['books' => $books, 'view' => $view]) +@stop @section('left') @if($recents) @@ -29,22 +31,19 @@ @stop -@section('body') - @include('books.list', ['books' => $books, 'view' => $view]) -@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', ['view' => $view]) + + @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])