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