mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 22:03:48 +08:00
19 lines
1014 B
PHP
19 lines
1014 B
PHP
<a href="{{$shelf->getUrl()}}" class="bookshelf-grid-item grid-card"
|
|
data-entity-type="bookshelf" data-entity-id="{{$shelf->id}}">
|
|
<div class="featured-image-container bg-shelf">
|
|
<img src="{{$shelf->getBookCover()}}" alt="{{$shelf->name}}">
|
|
</div>
|
|
<div class="grid-card-content">
|
|
<h2>{{$shelf->getShortName(35)}}</h2>
|
|
@if(isset($shelf->searchSnippet))
|
|
<p class="text-muted">{!! $shelf->searchSnippet !!}</p>
|
|
@else
|
|
<p class="text-muted">{{ $shelf->getExcerpt(130) }}</p>
|
|
@endif
|
|
</div>
|
|
<div class="grid-card-footer text-muted text-small">
|
|
@icon('star')<span title="{{$shelf->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $shelf->created_at->diffForHumans()]) }}</span>
|
|
<br>
|
|
@icon('edit')<span title="{{ $shelf->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $shelf->updated_at->diffForHumans()]) }}</span>
|
|
</div>
|
|
</a> |