BookStack/resources/views/partials/entity-list-item-basic.blade.php
2021-01-15 15:52:03 +01:00

11 lines
659 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 role="presentation" class="icon text-{{$type}}">@icon($type)</span>
<div class="content">
@if($entity->tags->count() > 0 and $showTags ?? false)
@include('components.tag-list', ['entity' => $entity, 'disableLinks' => True ])
@endif
<h4 class="entity-list-item-name break-text">{{ $entity->name }}</h4>
{{ $slot ?? '' }}
</div>
</a>