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