]> BookStack Code Mirror - bookstack/blob - resources/views/partials/entity-list-item.blade.php
Implement the renderPages parameter
[bookstack] / resources / views / partials / entity-list-item.blade.php
1 @component('partials.entity-list-item-basic', ['entity' => $entity])
2 <div class="entity-item-snippet">
3
4     @if($showPath ?? false)
5         @if($entity->book_id)
6             <span class="text-book">{{ $entity->book->getShortName(42) }}</span>
7             @if($entity->chapter_id)
8                 <span class="text-muted entity-list-item-path-sep">@icon('chevron-right')</span> <span class="text-chapter">{{ $entity->chapter->getShortName(42) }}</span>
9             @endif
10         @endif
11     @endif
12
13     <p class="text-muted break-text">{{ $entity->getExcerpt() }}</p>
14 </div>
15 @endcomponent