]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/index.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / shelves / index.blade.php
1 @extends('layouts.tri')
2
3 @section('body')
4     @include('shelves.parts.list', ['shelves' => $shelves, 'view' => $view, 'listOptions' => $listOptions])
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-link">
12             @if(userCan('bookshelf-create-all'))
13                 <a href="{{ url("/create-shelf") }}" data-shortcut="new" class="icon-list-item">
14                     <span>@icon('add')</span>
15                     <span>{{ trans('entities.shelves_new_action') }}</span>
16                 </a>
17             @endif
18
19             @include('entities.view-toggle', ['view' => $view, 'type' => 'bookshelves'])
20
21             <a href="{{ url('/tags') }}" class="icon-list-item">
22                 <span>@icon('tag')</span>
23                 <span>{{ trans('entities.tags_view_tags') }}</span>
24             </a>
25         </div>
26     </div>
27
28 @stop
29
30 @section('left')
31     @if($recents)
32         <div id="recents" class="mb-xl">
33             <h5>{{ trans('entities.recently_viewed') }}</h5>
34             @include('entities.list', ['entities' => $recents, 'style' => 'compact'])
35         </div>
36     @endif
37
38     <div id="popular" class="mb-xl">
39         <h5>{{ trans('entities.shelves_popular') }}</h5>
40         @if(count($popular) > 0)
41             @include('entities.list', ['entities' => $popular, 'style' => 'compact'])
42         @else
43             <p class="text-muted pb-l mb-none">{{ trans('entities.shelves_popular_empty') }}</p>
44         @endif
45     </div>
46
47     <div id="new" class="mb-xl">
48         <h5>{{ trans('entities.shelves_new') }}</h5>
49         @if(count($new) > 0)
50             @include('entities.list', ['entities' => $new, 'style' => 'compact'])
51         @else
52             <p class="text-muted pb-l mb-none">{{ trans('entities.shelves_new_empty') }}</p>
53         @endif
54     </div>
55 @stop