2018-04-30 08:53:04 -04:00
|
|
|
<div class="entity-meta">
|
2017-08-26 10:41:33 -04:00
|
|
|
@if($entity->isA('revision'))
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('history'){{ trans('entities.pages_revision') }}
|
|
|
|
{{ trans('entities.pages_revisions_number') }}{{ $entity->revision_number == 0 ? '' : $entity->revision_number }}
|
|
|
|
</div>
|
2017-08-26 10:41:33 -04:00
|
|
|
@endif
|
2018-04-30 08:53:04 -04:00
|
|
|
|
|
|
|
@if ($entity->isA('page'))
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@if (userCan('page-update', $entity)) <a href="{{ $entity->getUrl('/revisions') }}"> @endif
|
|
|
|
@icon('history'){{ trans('entities.meta_revision', ['revisionCount' => $entity->revision_count]) }}
|
2018-04-30 08:53:04 -04:00
|
|
|
@if (userCan('page-update', $entity))</a>@endif
|
2020-12-30 13:25:35 -05:00
|
|
|
</div>
|
2018-04-30 08:53:04 -04:00
|
|
|
@endif
|
|
|
|
|
2021-04-20 16:03:44 -04:00
|
|
|
@if ($entity->ownedBy && $entity->owned_by !== $entity->created_by)
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('user'){!! trans('entities.meta_owned_name', [
|
|
|
|
'user' => "<a href='{$entity->ownedBy->getProfileUrl()}'>".e($entity->ownedBy->name). "</a>"
|
|
|
|
]) !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
2018-04-30 08:53:04 -04:00
|
|
|
|
2016-11-17 08:33:07 -05:00
|
|
|
@if ($entity->createdBy)
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('star'){!! trans('entities.meta_created_name', [
|
2017-04-20 15:58:54 -04:00
|
|
|
'timeLength' => '<span title="'.$entity->created_at->toDayDateTimeString().'">'.$entity->created_at->diffForHumans() . '</span>',
|
2020-12-30 13:25:35 -05:00
|
|
|
'user' => "<a href='{$entity->createdBy->getProfileUrl()}'>".e($entity->createdBy->name). "</a>"
|
2017-04-20 15:58:54 -04:00
|
|
|
]) !!}
|
2020-12-30 13:25:35 -05:00
|
|
|
</div>
|
2016-11-17 08:33:07 -05:00
|
|
|
@else
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('star')<span title="{{$entity->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $entity->created_at->diffForHumans()]) }}</span>
|
|
|
|
</div>
|
2016-11-17 08:33:07 -05:00
|
|
|
@endif
|
2018-04-30 08:53:04 -04:00
|
|
|
|
2016-11-17 08:33:07 -05:00
|
|
|
@if ($entity->updatedBy)
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('edit'){!! trans('entities.meta_updated_name', [
|
2017-04-20 15:58:54 -04:00
|
|
|
'timeLength' => '<span title="' . $entity->updated_at->toDayDateTimeString() .'">' . $entity->updated_at->diffForHumans() .'</span>',
|
2020-12-30 13:25:35 -05:00
|
|
|
'user' => "<a href='{$entity->updatedBy->getProfileUrl()}'>".e($entity->updatedBy->name). "</a>"
|
2017-04-20 15:58:54 -04:00
|
|
|
]) !!}
|
2020-12-30 13:25:35 -05:00
|
|
|
</div>
|
2017-08-26 10:41:33 -04:00
|
|
|
@elseif (!$entity->isA('revision'))
|
2020-12-30 13:25:35 -05:00
|
|
|
<div>
|
|
|
|
@icon('edit')<span title="{{ $entity->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $entity->updated_at->diffForHumans()]) }}</span>
|
|
|
|
</div>
|
2016-11-17 08:33:07 -05:00
|
|
|
@endif
|
2018-04-30 08:53:04 -04:00
|
|
|
</div>
|