BookStack/resources/views/books/grid-item.blade.php
2018-12-09 14:04:28 +00:00

17 lines
747 B
PHP

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