2016-06-12 19:14:14 +08:00
|
|
|
<div class="page {{$page->draft ? 'draft' : ''}} entity-list-item" data-entity-type="page" data-entity-id="{{$page->id}}">
|
2015-09-04 02:05:45 +08:00
|
|
|
<h3>
|
2016-09-02 03:36:22 +08:00
|
|
|
<a href="{{ $page->getUrl() }}" class="text-page entity-list-item-link"><i class="zmdi zmdi-file-text"></i><span class="entity-list-item-name">{{ $page->name }}</span></a>
|
2015-09-04 02:05:45 +08:00
|
|
|
</h3>
|
2015-10-15 04:55:56 +08:00
|
|
|
|
2015-09-04 02:05:45 +08:00
|
|
|
@if(isset($page->searchSnippet))
|
|
|
|
<p class="text-muted">{!! $page->searchSnippet !!}</p>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ $page->getExcerpt() }}</p>
|
|
|
|
@endif
|
2016-02-21 02:51:01 +08:00
|
|
|
|
|
|
|
@if(isset($style) && $style === 'detailed')
|
|
|
|
<div class="row meta text-muted text-small">
|
2016-06-12 04:04:18 +08:00
|
|
|
<div class="col-md-6">
|
2016-02-21 02:51:01 +08:00
|
|
|
Created {{$page->created_at->diffForHumans()}} @if($page->createdBy)by {{$page->createdBy->name}}@endif <br>
|
|
|
|
Last updated {{ $page->updated_at->diffForHumans() }} @if($page->updatedBy)by {{$page->updatedBy->name}} @endif
|
|
|
|
</div>
|
2016-06-12 04:04:18 +08:00
|
|
|
<div class="col-md-6">
|
2016-02-21 20:53:58 +08:00
|
|
|
<a class="text-book" href="{{ $page->book->getUrl() }}"><i class="zmdi zmdi-book"></i>{{ $page->book->getShortName(30) }}</a>
|
2016-02-21 02:51:01 +08:00
|
|
|
<br>
|
|
|
|
@if($page->chapter)
|
2016-02-21 20:53:58 +08:00
|
|
|
<a class="text-chapter" href="{{ $page->chapter->getUrl() }}"><i class="zmdi zmdi-collection-bookmark"></i>{{ $page->chapter->getShortName(30) }}</a>
|
2016-02-21 02:51:01 +08:00
|
|
|
@else
|
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i> Page is not in a chapter
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2015-09-04 02:05:45 +08:00
|
|
|
</div>
|