mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 14:08:06 +08:00
b00b319e83
Since flexbox is better supported on a wider range of elements
8 lines
453 B
PHP
8 lines
453 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}}">
|
|
<span class="icon text-{{$type}}">@icon($type)</span>
|
|
<div class="content">
|
|
<h4 class="entity-list-item-name break-text">{{ $entity->name }}</h4>
|
|
{{ $slot ?? '' }}
|
|
</div>
|
|
</a>
|