BookStackApp_BookStack/resources/views/shelves/parts/list.blade.php
Dan Brown 9b4f1fb981
Styles: Aligned empty state alignment & consistency
- Fixed inital empty state margins/paddings to be aligned and not differ
when lists are empty.
- Aligned button/action display when viewing empty entities.
- Fixed use of non-existing permission in books for book empty state
  button.

Fixes #4563
2023-10-23 11:53:19 +01:00

44 lines
1.4 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('common.sort', $listOptions->getSortControlData())
</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.parts.list-item', ['shelf' => $shelf])
@endforeach
</div>
@else
<div class="grid third">
@foreach($shelves as $key => $shelf)
@include('entities.grid-item', ['entity' => $shelf])
@endforeach
</div>
@endif
<div>
{!! $shelves->render() !!}
</div>
@else
<p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
@if(userCan('bookshelf-create-all'))
<div class="icon-list block inline">
<a href="{{ url("/create-shelf") }}"
class="icon-list-item text-bookshelf">
<span>@icon('add')</span>
<span>{{ trans('entities.create_now') }}</span>
</a>
</div>
@endif
@endif
</main>