mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-18 09:53:52 +08:00
8 lines
451 B
PHP
8 lines
451 B
PHP
<?php $type = $entity->getType(); ?>
|
|
<a href="{{ $entity->getUrl() }}" class="{{$type}} {{$type === 'page' && $entity->draft ? 'draft' : ''}} {{$classes ?? ''}} entity-list-item" data-entity-type="{{$type}}" data-entity-id="{{$entity->id}}">
|
|
<div class="icon text-{{$type}}">@icon($type)</div>
|
|
<div class="content">
|
|
<h4 class="entity-list-item-name break-text">{{ $entity->name }}</h4>
|
|
{{ $slot ?? '' }}
|
|
</div>
|
|
</a>
|