]> BookStack Code Mirror - bookstack/blob - resources/views/common/home-book.blade.php
Add the "Create Shelf" resp. "Create Book" to the home view
[bookstack] / resources / views / common / home-book.blade.php
1 @extends('tri-layout')
2
3 @section('body')
4     @include('books.list', ['books' => $books, 'view' => $view])
5 @stop
6
7 @section('left')
8     @include('common.home-sidebar')
9 @stop
10
11 @section('right')
12     <div class="actions mb-xl">
13         <h5>{{ trans('common.actions') }}</h5>
14         <div class="icon-list text-primary">
15             @if($currentUser->can('book-create-all'))
16                 <a href="{{ url("/create-book") }}" class="icon-list-item">
17                     <span>@icon('add')</span>
18                     <span>{{ trans('entities.books_create') }}</span>
19                 </a>
20             @endif
21             @include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
22             @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
23         </div>
24     </div>
25 @stop