]> BookStack Code Mirror - bookstack/blob - resources/views/home/shelves.blade.php
fc99b915f3b3964722fcec359e3def557dace6b5
[bookstack] / resources / views / home / shelves.blade.php
1 @extends('layouts.tri')
2
3 @section('body')
4     @include('shelves.parts.list', ['shelves' => $shelves, 'view' => $view])
5 @stop
6
7 @section('left')
8     @include('home.parts.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('entities.view-toggle', ['view' => $view, 'type' => 'bookshelves'])
22             @include('home.parts.expand-toggle', ['classes' => 'text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
23             @include('common.dark-mode-toggle', ['classes' => 'icon-list-item text-primary'])
24         </div>
25     </div>
26 @stop