mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-30 04:33:41 +08:00
9b4f1fb981
- 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
11 lines
414 B
PHP
11 lines
414 B
PHP
@if(count($entities) > 0)
|
|
<div class="entity-list {{ $style ?? '' }}">
|
|
@foreach($entities as $index => $entity)
|
|
@include('entities.list-item', ['entity' => $entity, 'showPath' => $showPath ?? false, 'showTags' => $showTags ?? false])
|
|
@endforeach
|
|
</div>
|
|
@else
|
|
<p class="text-muted empty-text pb-l mb-none">
|
|
{{ $emptyText ?? trans('common.no_items') }}
|
|
</p>
|
|
@endif |