mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-17 00:34:00 +08: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
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
|
|
<main class="content-wrap mt-m card">
|
|
|
|
<div class="grid half v-center">
|
|
<h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
|
|
<div class="text-right">
|
|
@include('partials.sort', ['options' => $sortOptions, 'order' => $order, 'sort' => $sort, 'type' => 'bookshelves'])
|
|
</div>
|
|
</div>
|
|
|
|
@if(count($shelves) > 0)
|
|
@if($view === 'list')
|
|
<div class="entity-list">
|
|
@foreach($shelves as $index => $shelf)
|
|
@if ($index !== 0)
|
|
<hr class="my-m">
|
|
@endif
|
|
@include('shelves.list-item', ['shelf' => $shelf])
|
|
@endforeach
|
|
</div>
|
|
@else
|
|
<div class="grid third">
|
|
@foreach($shelves as $key => $shelf)
|
|
@include('shelves.grid-item', ['shelf' => $shelf])
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
<div>
|
|
{!! $shelves->render() !!}
|
|
</div>
|
|
@else
|
|
<p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
|
|
@if(userCan('bookshelf-create-all'))
|
|
<a href="{{ url("/create-shelf") }}" class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
|
|
@endif
|
|
@endif
|
|
|
|
</main>
|