2015-08-09 13:06:52 +02:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2016-02-11 23:23:19 +01:00
|
|
|
<div class="faded-small toolbar">
|
2015-08-31 12:43:28 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2016-07-10 13:12:52 +02:00
|
|
|
<div class="col-sm-12 faded">
|
2016-12-03 19:35:40 +01:00
|
|
|
@include('pages._breadcrumbs', ['page' => $page])
|
2015-08-31 12:43:28 +02:00
|
|
|
</div>
|
2015-08-09 13:06:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-07-10 13:12:52 +02:00
|
|
|
<div class="container" ng-non-bindable>
|
2016-12-03 19:35:40 +01:00
|
|
|
<h1>{{ trans('entities.pages_revisions') }}</h1>
|
2015-08-09 13:06:52 +02:00
|
|
|
|
|
|
|
@if(count($page->revisions) > 0)
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2017-04-20 21:58:54 +02:00
|
|
|
<th width="3%">{{ trans('entities.pages_revisions_number') }}</th>
|
2016-12-03 19:35:40 +01:00
|
|
|
<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>
|
2015-08-09 13:06:52 +02:00
|
|
|
</tr>
|
2016-07-10 13:12:52 +02:00
|
|
|
@foreach($page->revisions as $index => $revision)
|
2015-08-09 13:06:52 +02:00
|
|
|
<tr>
|
2017-04-20 21:58:54 +02:00
|
|
|
<td>{{ $revision->revision_number == 0 ? '' : $revision->revision_number }}</td>
|
2016-08-14 14:09:44 +02:00
|
|
|
<td>{{ $revision->name }}</td>
|
2015-12-15 20:53:46 +01:00
|
|
|
<td style="line-height: 0;">
|
|
|
|
@if($revision->createdBy)
|
2016-08-14 14:09:44 +02:00
|
|
|
<img class="avatar" src="{{ $revision->createdBy->getAvatar(30) }}" alt="{{ $revision->createdBy->name }}">
|
2015-12-15 20:53:46 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
2016-12-03 19:35:40 +01:00
|
|
|
<td> @if($revision->createdBy) {{ $revision->createdBy->name }} @else {{ trans('common.deleted_user') }} @endif</td>
|
2016-08-14 14:09:44 +02:00
|
|
|
<td><small>{{ $revision->created_at->format('jS F, Y H:i:s') }} <br> ({{ $revision->created_at->diffForHumans() }})</small></td>
|
|
|
|
<td>{{ $revision->summary }}</td>
|
2016-09-29 11:10:46 +02:00
|
|
|
<td>
|
2016-12-03 19:35:40 +01:00
|
|
|
<a href="{{ $revision->getUrl('changes') }}" target="_blank">{{ trans('entities.pages_revisions_changes') }}</a>
|
2016-09-29 11:10:46 +02:00
|
|
|
<span class="text-muted"> | </span>
|
|
|
|
|
|
|
|
@if ($index === 0)
|
2016-12-03 19:35:40 +01:00
|
|
|
<a target="_blank" href="{{ $page->getUrl() }}"><i>{{ trans('entities.pages_revisions_current') }}</i></a>
|
2016-09-29 11:10:46 +02:00
|
|
|
@else
|
2016-12-03 19:35:40 +01:00
|
|
|
<a href="{{ $revision->getUrl() }}" target="_blank">{{ trans('entities.pages_revisions_preview') }}</a>
|
2016-07-10 13:12:52 +02:00
|
|
|
<span class="text-muted"> | </span>
|
2017-01-01 13:20:30 +01:00
|
|
|
<a href="{{ $revision->getUrl('restore') }}">{{ trans('entities.pages_revisions_restore') }}</a>
|
2016-09-29 11:10:46 +02:00
|
|
|
@endif
|
|
|
|
</td>
|
2015-08-09 13:06:52 +02:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
2016-12-03 19:35:40 +01:00
|
|
|
<p>{{ trans('entities.pages_revisions_none') }}</p>
|
2015-08-09 13:06:52 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|