BookStack/resources/views/search/parts/entity-ajax-list.blade.php
Dan Brown 4fb85a9a5c
Started removal of non-view permission queries
Updated ajax search and entity selector usage to display and handle
items that the user does not have permission to interact with.
Started logic changes to not allow permission type to be passed around,
with views instead being the fixed sole permission.
2022-07-13 15:23:03 +01:00

21 lines
561 B
PHP

<div class="entity-list">
@if(count($entities) > 0)
@foreach($entities as $index => $entity)
@include('entities.list-item', [
'entity' => $entity,
'showPath' => true,
'locked' => $permission !== 'view' && !userCan($permission, $entity)
])
@if($index !== count($entities) - 1)
<hr>
@endif
@endforeach
@else
<p class="text-muted text-large p-xl">
{{ trans('common.no_items') }}
</p>
@endif
</div>