1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 11:52:34 +01:00

Fixed pagination on change of display type.

This commit is contained in:
Nilesh Deepak 2017-07-06 10:05:11 +05:30
parent 16a09e8ff6
commit c5f11e4516

View File

@ -22,16 +22,19 @@
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9">
<h1>{{ trans('entities.books') }}</h1>
{!! $books->render() !!}
@if(count($books) > 0)
@if($books_display=='grid')
@foreach($books as $book)
@include('books/grid-item', ['book' => $book])
@endforeach
<div class="col-xs-12">
{!! $books->render() !!}
</div>
@else
@foreach($books as $book)
@include('books/list-item', ['book' => $book])
@endforeach
{!! $books->render() !!}
@endif
@else
<p class="text-muted">{{ trans('entities.books_empty') }}</p>
@ -58,7 +61,6 @@
@endif
</div>
</div>
{!! $books->render() !!}
</div>
</div>