]> BookStack Code Mirror - bookstack/blob - resources/views/books/index.blade.php
Fixed failing test after drawio default url change
[bookstack] / resources / views / books / index.blade.php
1 @extends('layouts.tri')
2
3 @section('body')
4     @include('books.parts.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('entities.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('entities.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('entities.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(user()->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('entities.view-toggle', ['view' => $view, 'type' => 'books'])
47
48             <a href="{{ url('/tags') }}" class="icon-list-item">
49                 <span>@icon('tag')</span>
50                 <span>{{ trans('entities.tags_view_tags') }}</span>
51             </a>
52         </div>
53     </div>
54
55 @stop