]> BookStack Code Mirror - bookstack/blob - resources/views/books/index.blade.php
Changed the location of the "view-toggle" to be under the books views.
[bookstack] / resources / views / books / index.blade.php
1 @extends('sidebar-layout')
2
3 @section('toolbar')
4     <div class="col-xs-6">
5         <div class="action-buttons text-left">
6             @include('books/view-toggle', ['booksViewType' => $booksViewType])
7         </div>
8     </div>
9     <div class="col-xs-6 faded">
10         <div class="action-buttons">
11             @if($currentUser->can('book-create-all'))
12                 <a href="{{ baseUrl("/create-book") }}" class="text-pos text-button">@icon('add'){{ trans('entities.books_create') }}</a>
13             @endif
14         </div>
15     </div>
16 @stop
17
18 @section('sidebar')
19     @if($recents)
20         <div id="recents" class="card">
21             <h3>@icon('view') {{ trans('entities.recently_viewed') }}</h3>
22             @include('partials/entity-list', ['entities' => $recents, 'style' => 'compact'])
23         </div>
24     @endif
25
26     <div id="popular" class="card">
27         <h3>@icon('popular') {{ trans('entities.books_popular') }}</h3>
28         @if(count($popular) > 0)
29             @include('partials/entity-list', ['entities' => $popular, 'style' => 'compact'])
30         @else
31             <div class="body text-muted">{{ trans('entities.books_popular_empty') }}</div>
32         @endif
33     </div>
34
35     <div id="new" class="card">
36         <h3>@icon('star-circle') {{ trans('entities.books_new') }}</h3>
37         @if(count($popular) > 0)
38             @include('partials/entity-list', ['entities' => $new, 'style' => 'compact'])
39         @else
40             <div class="body text-muted">{{ trans('entities.books_new_empty') }}</div>
41         @endif
42     </div>
43 @stop
44
45 @section('body')
46     @include('books/list', ['books' => $books, 'bookViewType' => $booksViewType])
47 @stop