2016-03-13 13:04:08 +01:00
|
|
|
<div class="page {{$page->draft ? 'draft' : ''}}">
|
2015-09-03 20:05:45 +02:00
|
|
|
<h3>
|
|
|
|
<a href="{{ $page->getUrl() }}" class="text-page"><i class="zmdi zmdi-file-text"></i>{{ $page->name }}</a>
|
|
|
|
</h3>
|
2015-10-14 22:55:56 +02:00
|
|
|
|
2015-09-03 20:05:45 +02:00
|
|
|
@if(isset($page->searchSnippet))
|
|
|
|
<p class="text-muted">{!! $page->searchSnippet !!}</p>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ $page->getExcerpt() }}</p>
|
|
|
|
@endif
|
2016-02-20 19:51:01 +01:00
|
|
|
|
|
|
|
@if(isset($style) && $style === 'detailed')
|
|
|
|
<div class="row meta text-muted text-small">
|
|
|
|
<div class="col-md-4">
|
|
|
|
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>
|
|
|
|
<div class="col-md-8">
|
2016-02-21 13:53:58 +01:00
|
|
|
<a class="text-book" href="{{ $page->book->getUrl() }}"><i class="zmdi zmdi-book"></i>{{ $page->book->getShortName(30) }}</a>
|
2016-02-20 19:51:01 +01:00
|
|
|
<br>
|
|
|
|
@if($page->chapter)
|
2016-02-21 13:53:58 +01:00
|
|
|
<a class="text-chapter" href="{{ $page->chapter->getUrl() }}"><i class="zmdi zmdi-collection-bookmark"></i>{{ $page->chapter->getShortName(30) }}</a>
|
2016-02-20 19:51:01 +01:00
|
|
|
@else
|
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i> Page is not in a chapter
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2015-09-03 20:05:45 +02:00
|
|
|
</div>
|