mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
cf5d51e7b8
- Set proper semantic tags for main parts of content. - Removed focus-trap from tag manager/autosuggest. - Set better accessibility labelling on tag manager. - Updated collapsible sections to be keyboard navigatable. - Improved input focus styling to better fit theme. - Updated custom styled file picker to be accessible via keyboard. Related to #1320
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
|
|
<main class="content-wrap mt-m card">
|
|
<div class="grid half v-center no-row-gap">
|
|
<h1 class="list-heading">{{ trans('entities.books') }}</h1>
|
|
<div class="text-m-right my-m">
|
|
|
|
@include('partials.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort, 'type' => 'books'])
|
|
|
|
</div>
|
|
</div>
|
|
@if(count($books) > 0)
|
|
@if($view === 'list')
|
|
<div class="entity-list">
|
|
@foreach($books as $book)
|
|
@include('books.list-item', ['book' => $book])
|
|
@endforeach
|
|
</div>
|
|
@else
|
|
<div class="grid third">
|
|
@foreach($books as $key => $book)
|
|
@include('books.grid-item', ['book' => $book])
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
<div>
|
|
{!! $books->render() !!}
|
|
</div>
|
|
@else
|
|
<p class="text-muted">{{ trans('entities.books_empty') }}</p>
|
|
@if(userCan('books-create-all'))
|
|
<a href="{{ url("/create-book") }}" class="text-pos">@icon('edit'){{ trans('entities.create_now') }}</a>
|
|
@endif
|
|
@endif
|
|
</main> |