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