Repaired other uses of entity-meta view

This commit is contained in:
Dan Brown 2018-04-30 15:12:10 +01:00
parent 0c3c8fc9c3
commit b0d027a4a9
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
4 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@
<p >{{ $book->getExcerpt(130) }}</p> <p >{{ $book->getExcerpt(130) }}</p>
@endif @endif
</div> </div>
<div class="grid-card-footer"> <div class="grid-card-footer text-muted text-small">
<span>@include('partials.entity-meta', ['entity' => $book])</span> <span>@include('partials.entity-meta', ['entity' => $book])</span>
</div> </div>
</div> </div>

View File

@ -21,7 +21,9 @@
<hr> <hr>
<div class="text-muted text-small">
@include('partials.entity-meta', ['entity' => $page]) @include('partials.entity-meta', ['entity' => $page])
</div>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
@section('sidebar') @section('sidebar')
<div class="card"> <div class="card">
<h3>@icon('info') {{ trans('common.details') }}</h3> <h3>@icon('info') {{ trans('common.details') }}</h3>
<div class="body"> <div class="body text-small text-muted">
@include('partials.entity-meta', ['entity' => $revision]) @include('partials.entity-meta', ['entity' => $revision])
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
<div class="entity-meta"> <div class="entity-meta">
@if($entity->isA('revision')) @if($entity->isA('revision'))
{{ trans('entities.pages_revision') }} @icon('history'){{ trans('entities.pages_revision') }}
{{ trans('entities.pages_revisions_number') }}{{ $entity->revision_number == 0 ? '' : $entity->revision_number }} {{ trans('entities.pages_revisions_number') }}{{ $entity->revision_number == 0 ? '' : $entity->revision_number }}
<br> <br>
@endif @endif