]> BookStack Code Mirror - bookstack/blob - resources/views/entities/list-item-basic.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / entities / 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             <h4 class="entity-list-item-name break-text">{{ $entity->preview_name ?? $entity->name }}</h4>
6             {{ $slot ?? '' }}
7     </div>
8 </a>