]> BookStack Code Mirror - bookstack/blobdiff - resources/views/entities/list-item.blade.php
enh(recently updated): show updatedBy and updated_at
[bookstack] / resources / views / entities / list-item.blade.php
index aa4f6c1e8ec76507cd6808393d9fe04d6762ef32..44e06753d507a3df4ff17699b9fb0fda68558af4 100644 (file)
     </div>
 @endif
 
+@if(($showUpdatedBy ?? false) && $entity->relationLoaded('updatedBy') && $entity->updatedBy)
+    <small title="{{ $entity->updated_at->toDayDateTimeString() }}">
+        {!! trans('entities.meta_updated_name', [
+            'timeLength' => $entity->updated_at->diffForHumans(),
+            'user' => e($entity->updatedBy->name)
+        ]) !!}
+    </small>
+@endif
+
 @endcomponent
\ No newline at end of file