mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-09-04 16:42:21 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- Updated breadcrumb dropdown switchers and back-end sibling code to handle new breadcrumbs. - Added breadcrumb view composer and EntityContext system to mangage tracking if in the context of a bookshelf.
21 lines
926 B
PHP
21 lines
926 B
PHP
<a href="{{ $shelf->getUrl() }}" class="shelf entity-list-item" data-entity-type="bookshelf" data-entity-id="{{$shelf->id}}">
|
|
<div class="entity-list-item-image bg-shelf @if($shelf->image_id) has-image @endif" style="background-image: url('{{ $shelf->getBookCover() }}')">
|
|
@icon('bookshelf')
|
|
</div>
|
|
<div class="content py-xs">
|
|
<h4 class="entity-list-item-name break-text">{{ $shelf->name }}</h4>
|
|
<div class="entity-item-snippet">
|
|
<p class="text-muted break-text mb-none">{{ $shelf->getExcerpt() }}</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="entity-shelf-books grid third gap-y-xs entity-list-item-children">
|
|
@foreach($shelf->books as $book)
|
|
<div>
|
|
<a href="{{ $book->getUrl('?shelf=' . $shelf->id) }}" class="entity-chip text-book">
|
|
@icon('book')
|
|
{{ $book->name }}
|
|
</a>
|
|
</div>
|
|
@endforeach
|
|
</div> |