]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/list.blade.php
Update settings.php
[bookstack] / resources / views / shelves / list.blade.php
1
2 <main class="content-wrap mt-m card">
3
4     <div class="grid half v-center">
5         <h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
6         <div class="text-right">
7             @include('partials.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort, 'type' => 'bookshelves'])
8         </div>
9     </div>
10
11     @if(count($shelves) > 0)
12         @if($view === 'list')
13             <div class="entity-list">
14                 @foreach($shelves as $index => $shelf)
15                     @if ($index !== 0)
16                         <hr class="my-m">
17                     @endif
18                     @include('shelves.list-item', ['shelf' => $shelf])
19                 @endforeach
20             </div>
21         @else
22             <div class="grid third">
23                 @foreach($shelves as $key => $shelf)
24                     @include('shelves.grid-item', ['shelf' => $shelf])
25                 @endforeach
26             </div>
27         @endif
28         <div>
29             {!! $shelves->render() !!}
30         </div>
31     @else
32         <p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
33         @if(userCan('bookshelf-create-all'))
34             <a href="{{ url("/create-shelf") }}" class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
35         @endif
36     @endif
37
38 </main>