BookStack/resources/views/shelves/grid-item.blade.php
Dan Brown b89411c108
Copied book content, Added create routes
Added view control
Added pivot table for books relation
Added control to assign books
2018-08-27 14:18:09 +01:00

18 lines
853 B
PHP

<div class="bookshelf-grid-item grid-card" data-entity-type="bookshelf" data-entity-id="{{$bookshelf->id}}">
<div class="featured-image-container">
<a href="{{$bookshelf->getUrl()}}" title="{{$bookshelf->name}}">
<img src="{{$bookshelf->getBookCover()}}" alt="{{$bookshelf->name}}">
</a>
</div>
<div class="grid-card-content">
<h2><a class="break-text" href="{{$bookshelf->getUrl()}}" title="{{$bookshelf->name}}">{{$bookshelf->getShortName(35)}}</a></h2>
@if(isset($bookshelf->searchSnippet))
<p >{!! $bookshelf->searchSnippet !!}</p>
@else
<p >{{ $bookshelf->getExcerpt(130) }}</p>
@endif
</div>
<div class="grid-card-footer text-muted text-small">
<span>@include('partials.entity-meta', ['entity' => $bookshelf])</span>
</div>
</div>