mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-13 22:43:39 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
21 lines
937 B
PHP
21 lines
937 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-bookshelf @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->visibleBooks as $book)
|
|
<div>
|
|
<a href="{{ $book->getUrl('?shelf=' . $shelf->id) }}" class="entity-chip text-book">
|
|
@icon('book')
|
|
{{ $book->name }}
|
|
</a>
|
|
</div>
|
|
@endforeach
|
|
</div> |