mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
17 lines
747 B
PHP
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> |