From: Dan Brown Date: Sat, 30 Jan 2021 16:40:13 +0000 (+0000) Subject: Merge branch 'feature_add_add-button_to_home_view' of git://github.com/philjak/BookSt... X-Git-Tag: v21.04~1^2~19 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/ccb2cb5b7cf0f4a3d21ddb87ec31ccde0d25b154 Merge branch 'feature_add_add-button_to_home_view' of git://github.com/philjak/BookStack into philjak-feature_add_add-button_to_home_view --- ccb2cb5b7cf0f4a3d21ddb87ec31ccde0d25b154 diff --cc resources/views/common/home-book.blade.php index 3dbcd2875,de2822261..1c18edb24 --- a/resources/views/common/home-book.blade.php +++ b/resources/views/common/home-book.blade.php @@@ -12,9 -12,14 +12,15 @@@
{{ trans('common.actions') }}
- @if($currentUser->can('book-create-all')) ++ @if(user()->can('book-create-all')) + + @icon('add') + {{ trans('entities.books_create') }} + + @endif - @include('partials.view-toggle', ['view' => $view, 'type' => 'book']) + @include('partials.view-toggle', ['view' => $view, 'type' => 'books']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) + @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
--@stop ++@stop diff --cc resources/views/common/home-shelves.blade.php index fccbef288,3935734d4..957fa6578 --- a/resources/views/common/home-shelves.blade.php +++ b/resources/views/common/home-shelves.blade.php @@@ -12,9 -12,14 +12,15 @@@
{{ trans('common.actions') }}
- @if($currentUser->can('bookshelf-create-all')) ++ @if(user()->can('bookshelf-create-all')) + + @icon('add') + {{ trans('entities.shelves_new_action') }} + + @endif - @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf']) + @include('partials.view-toggle', ['view' => $view, 'type' => 'shelves']) @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details']) + @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
--@stop ++@stop