BookStack/resources/views/books/grid-item.blade.php

19 lines
787 B
PHP
Raw Normal View History

<div class="col-xs-6 col-sm-4 col-md-4 col-lg-3" data-entity-type="book" data-entity-id="{{$book->id}}">
2017-07-12 10:14:37 +02:00
<div class="gallery-item">
<h4>
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}" title="{{$book->name}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->getHeadingExcerpt()}}</span>
<br>
2017-07-12 10:14:37 +02:00
</a>
</h4>
<div class="gallery-image">
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}">
2017-07-12 14:34:06 +02:00
<img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
</a>
2017-07-12 10:14:37 +02:00
</div>
@if(isset($book->searchSnippet))
<p class="text-muted">{!! $book->searchSnippet !!}</p>
@else
2017-07-12 10:14:37 +02:00
<p class="text-muted">{{ $book->getExcerpt(80) }}</p>
@endif
</div>
2017-06-29 15:24:04 +02:00
</div>