]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/index.blade.php
Migrated a whole load more page/chapter/shelf views
[bookstack] / resources / views / shelves / index.blade.php
1 @extends('tri-layout')
2
3 @section('body')
4     <div class="content-wrap card">
5         @include('shelves.list', ['shelves' => $shelves, 'view' => $view])
6     </div>
7 @stop
8
9 @section('right')
10
11     <div class="actions mb-xl">
12         <h5>{{ trans('common.actions') }}</h5>
13         <div class="icon-list text-primary">
14             @include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
15             @if($currentUser->can('bookshelf-create-all'))
16                 <a href="{{ baseUrl("/create-shelf") }}" class="icon-list-item">
17                     <span class="icon">@icon('add')</span>
18                     <span>{{ trans('entities.shelves_create') }}</span>
19                 </a>
20             @endif
21         </div>
22     </div>
23
24 @stop
25
26 @section('left')
27     @if($recents)
28         <div id="recents-shelves">
29             <h5>{{ trans('entities.recently_viewed') }}</h5>
30             @include('partials.entity-list', ['entities' => $recents, 'style' => 'compact'])
31         </div>
32     @endif
33
34     <div id="popular-shelves">
35         <h5>{{ trans('entities.shelves_popular') }}</h5>
36         @if(count($popular) > 0)
37             @include('partials.entity-list', ['entities' => $popular, 'style' => 'compact'])
38         @else
39             <div class="text-muted">{{ trans('entities.shelves_popular_empty') }}</div>
40         @endif
41     </div>
42
43     <div id="new-shelves">
44         <h5>{{ trans('entities.shelves_new') }}</h5>
45         @if(count($new) > 0)
46             @include('partials.entity-list', ['entities' => $new, 'style' => 'compact'])
47         @else
48             <div class="text-muted">{{ trans('entities.shelves_new_empty') }}</div>
49         @endif
50     </div>
51 @stop