mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
4c985aac7e
Adds stored revision counts to pages and the revisions themselves. Closes #321
20 lines
1.3 KiB
PHP
20 lines
1.3 KiB
PHP
<p class="text-muted small">
|
|
@if ($entity->isA('page')) {{ trans('entities.meta_revision', ['revisionCount' => $entity->revision_count]) }} <br> @endif
|
|
@if ($entity->createdBy)
|
|
{!! trans('entities.meta_created_name', [
|
|
'timeLength' => '<span title="'.$entity->created_at->toDayDateTimeString().'">'.$entity->created_at->diffForHumans() . '</span>',
|
|
'user' => "<a href='{$entity->createdBy->getProfileUrl()}'>".htmlentities($entity->createdBy->name). "</a>"
|
|
]) !!}
|
|
@else
|
|
<span title="{{$entity->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $entity->created_at->diffForHumans()]) }}</span>
|
|
@endif
|
|
<br>
|
|
@if ($entity->updatedBy)
|
|
{!! trans('entities.meta_updated_name', [
|
|
'timeLength' => '<span title="' . $entity->updated_at->toDayDateTimeString() .'">' . $entity->updated_at->diffForHumans() .'</span>',
|
|
'user' => "<a href='{$entity->updatedBy->getProfileUrl()}'>".htmlentities($entity->updatedBy->name). "</a>"
|
|
]) !!}
|
|
@else
|
|
<span title="{{ $entity->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $entity->updated_at->diffForHumans()]) }}</span>
|
|
@endif
|
|
</p> |