]> BookStack Code Mirror - bookstack/blob - resources/views/partials/entity-list-item-basic.blade.php
Show tags of all search results
[bookstack] / resources / views / partials / entity-list-item-basic.blade.php
1 <?php $type = $entity->getType(); ?>
2 <a href="{{ $entity->getUrl() }}" class="{{$type}} {{$type === 'page' && $entity->draft ? 'draft' : ''}} {{$classes ?? ''}} entity-list-item" data-entity-type="{{$type}}" data-entity-id="{{$entity->id}}">
3     <span role="presentation" class="icon text-{{$type}}">@icon($type)</span>
4     <div class="content">
5             @if($entity->tags->count() > 0 and $showTags ?? false)
6                     @include('components.tag-list', ['entity' => $entity, 'disableLinks' => True ])
7             @endif
8             <h4 class="entity-list-item-name break-text">{{ $entity->name }}</h4>
9             {{ $slot ?? '' }}
10     </div>
11 </a>