mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
b89411c108
Added view control Added pivot table for books relation Added control to assign books
27 lines
952 B
PHP
27 lines
952 B
PHP
|
|
<div class="container{{ $booksViewType === 'list' ? ' small' : '' }}">
|
|
<h1>{{ trans('entities.books') }}</h1>
|
|
@if(count($books) > 0)
|
|
@if($booksViewType === 'list')
|
|
@foreach($books as $book)
|
|
@include('books/list-item', ['book' => $book])
|
|
<hr>
|
|
@endforeach
|
|
{!! $books->render() !!}
|
|
@else
|
|
<div class="grid third">
|
|
@foreach($books as $key => $book)
|
|
@include('books/grid-item', ['book' => $book])
|
|
@endforeach
|
|
</div>
|
|
<div>
|
|
{!! $books->render() !!}
|
|
</div>
|
|
@endif
|
|
@else
|
|
<p class="text-muted">{{ trans('entities.books_empty') }}</p>
|
|
@if(userCan('books-create-all'))
|
|
<a href="{{ baseUrl("/create-book") }}" class="text-pos">@icon('edit'){{ trans('entities.create_now') }}</a>
|
|
@endif
|
|
@endif
|
|
</div> |