]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/parts/list.blade.php
Merge branch 'fix/oidc-logout' into development
[bookstack] / resources / views / shelves / parts / list.blade.php
1 <main class="content-wrap mt-m card">
2
3     <div class="grid half v-center">
4         <h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
5         <div class="text-right">
6             @include('common.sort', $listOptions->getSortControlData())
7         </div>
8     </div>
9
10     @if(count($shelves) > 0)
11         @if($view === 'list')
12             <div class="entity-list">
13                 @foreach($shelves as $index => $shelf)
14                     @if ($index !== 0)
15                         <hr class="my-m">
16                     @endif
17                     @include('shelves.parts.list-item', ['shelf' => $shelf])
18                 @endforeach
19             </div>
20         @else
21             <div class="grid third">
22                 @foreach($shelves as $key => $shelf)
23                     @include('entities.grid-item', ['entity' => $shelf])
24                 @endforeach
25             </div>
26         @endif
27         <div>
28             {!! $shelves->render() !!}
29         </div>
30     @else
31         <p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
32         @if(userCan('bookshelf-create-all'))
33             <div class="icon-list block inline">
34                 <a href="{{ url("/create-shelf") }}"
35                    class="icon-list-item text-bookshelf">
36                     <span>@icon('add')</span>
37                     <span>{{ trans('entities.create_now') }}</span>
38                 </a>
39             </div>
40         @endif
41     @endif
42
43 </main>