]> BookStack Code Mirror - bookstack/blob - resources/views/books/list.blade.php
1. Fixed translation for Copy and Reply
[bookstack] / resources / views / books / list.blade.php
1
2 <div class="container{{ $booksViewType === 'list' ? ' small' : '' }}">
3     <h1>{{ trans('entities.books') }}</h1>
4     @if(count($books) > 0)
5         @if($booksViewType === 'list')
6             @foreach($books as $book)
7                 @include('books/list-item', ['book' => $book])
8                 <hr>
9             @endforeach
10             {!! $books->render() !!}
11         @else
12              <div class="grid third">
13                 @foreach($books as $key => $book)
14                         @include('books/grid-item', ['book' => $book])
15                 @endforeach
16              </div>
17             <div>
18                 {!! $books->render() !!}
19             </div>
20         @endif
21     @else
22         <p class="text-muted">{{ trans('entities.books_empty') }}</p>
23         @if(userCan('books-create-all'))
24             <a href="{{ baseUrl("/create-book") }}" class="text-pos">@icon('edit'){{ trans('entities.create_now') }}</a>
25         @endif
26     @endif
27 </div>