use diffForHumans for revisions page too

master
Ondřej Hruška 6 years ago
parent 8d1de066e7
commit 83392e07ac
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 6
      resources/views/table/revisions.blade.php

@ -35,8 +35,10 @@
<div class="x-revision rounded border box-shadow mb-3 p-2" id="revision-{{$revision->id}}">
<div class="row">
<div class="col-md-8">
#{{$num}}
– {{ $revision->created_at->format('Y-m-d, G:i:s') }}
#{{$num}} –
<span title="{{$revision->created_at->format('Y-m-d, G:i:s')}}">
{{ $revision->created_at->diffForHumans() }}
</span>
@if($isCurrent)
<span class="text-muted ml-1">(current)</span>
@else

Loading…
Cancel
Save