2017-08-26 10:41:33 -04:00
|
|
|
@extends('simple-layout')
|
2015-08-09 07:06:52 -04:00
|
|
|
|
2017-08-26 10:41:33 -04:00
|
|
|
@section('toolbar')
|
|
|
|
<div class="col-sm-12 faded">
|
|
|
|
@include('pages._breadcrumbs', ['page' => $page])
|
2015-08-09 07:06:52 -04:00
|
|
|
</div>
|
2017-08-26 10:41:33 -04:00
|
|
|
@stop
|
2015-08-09 07:06:52 -04:00
|
|
|
|
2017-08-26 10:41:33 -04:00
|
|
|
@section('body')
|
2018-05-28 05:33:38 -04:00
|
|
|
<div class="container">
|
2017-08-26 10:41:33 -04:00
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
<div class="card">
|
2018-02-17 14:49:00 -05:00
|
|
|
<h3>@icon('history') {{ trans('entities.pages_revisions') }}</h3>
|
2017-08-26 10:41:33 -04:00
|
|
|
<div class="body">
|
|
|
|
@if(count($page->revisions) > 0)
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th width="3%">{{ trans('entities.pages_revisions_number') }}</th>
|
|
|
|
<th width="23%">{{ trans('entities.pages_name') }}</th>
|
|
|
|
<th colspan="2" width="8%">{{ trans('entities.pages_revisions_created_by') }}</th>
|
|
|
|
<th width="15%">{{ trans('entities.pages_revisions_date') }}</th>
|
|
|
|
<th width="25%">{{ trans('entities.pages_revisions_changelog') }}</th>
|
|
|
|
<th width="20%">{{ trans('common.actions') }}</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($page->revisions as $index => $revision)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $revision->revision_number == 0 ? '' : $revision->revision_number }}</td>
|
|
|
|
<td>{{ $revision->name }}</td>
|
|
|
|
<td style="line-height: 0;">
|
|
|
|
@if($revision->createdBy)
|
|
|
|
<img class="avatar" src="{{ $revision->createdBy->getAvatar(30) }}" alt="{{ $revision->createdBy->name }}">
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td> @if($revision->createdBy) {{ $revision->createdBy->name }} @else {{ trans('common.deleted_user') }} @endif</td>
|
|
|
|
<td><small>{{ $revision->created_at->format('jS F, Y H:i:s') }} <br> ({{ $revision->created_at->diffForHumans() }})</small></td>
|
|
|
|
<td>{{ $revision->summary }}</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ $revision->getUrl('changes') }}" target="_blank">{{ trans('entities.pages_revisions_changes') }}</a>
|
|
|
|
<span class="text-muted"> | </span>
|
|
|
|
|
|
|
|
@if ($index === 0)
|
|
|
|
<a target="_blank" href="{{ $page->getUrl() }}"><i>{{ trans('entities.pages_revisions_current') }}</i></a>
|
|
|
|
@else
|
|
|
|
<a href="{{ $revision->getUrl() }}" target="_blank">{{ trans('entities.pages_revisions_preview') }}</a>
|
|
|
|
<span class="text-muted"> | </span>
|
|
|
|
<a href="{{ $revision->getUrl('restore') }}">{{ trans('entities.pages_revisions_restore') }}</a>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
<p>{{ trans('entities.pages_revisions_none') }}</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-09 07:06:52 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|