]> BookStack Code Mirror - bookstack/blob - resources/views/common/home-shelves.blade.php
Merge branch 'feature_add_add-button_to_home_view' of git://github.com/philjak/BookSt...
[bookstack] / resources / views / common / home-shelves.blade.php
1 @extends('tri-layout')
2
3 @section('body')
4     @include('shelves.list', ['shelves' => $shelves, '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(user()->can('bookshelf-create-all'))
16                 <a href="{{ url("/create-shelf") }}" class="icon-list-item">
17                     <span>@icon('add')</span>
18                     <span>{{ trans('entities.shelves_new_action') }}</span>
19                 </a>
20             @endif
21             @include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
22             @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
23             @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
24         </div>
25     </div>
26 @stop