]> BookStack Code Mirror - bookstack/blob - resources/views/books/grid-item.blade.php
Rolled tri-layout to page edit and book-create
[bookstack] / resources / views / books / grid-item.blade.php
1 <a href="{{$book->getUrl()}}" class="grid-card"  data-entity-type="book" data-entity-id="{{$book->id}}">
2     <div class="featured-image-container bg-book">
3         <img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
4     </div>
5     <div class="grid-card-content">
6         <h2>{{$book->getShortName(35)}}</h2>
7         @if(isset($book->searchSnippet))
8             <p class="text-muted">{!! $book->searchSnippet !!}</p>
9         @else
10             <p class="text-muted">{{ $book->getExcerpt(130) }}</p>
11         @endif
12     </div>
13     <div class="grid-card-footer text-muted text-small">
14         @icon('star')<span title="{{$book->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $book->created_at->diffForHumans()]) }}</span>
15         <br>
16         @icon('edit')<span title="{{ $book->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $book->updated_at->diffForHumans()]) }}</span>
17     </div>
18 </a>