41 lines
1.8 KiB
PHP
41 lines
1.8 KiB
PHP
@extends('admin.layoutWithNavigation')
|
|
|
|
@section('pageHeading', @trans('admin/history.pageName', ['name' => $page->title]))
|
|
@section('pageDescription', $page->meta_description)
|
|
|
|
@section('content')
|
|
<ul class="timeline more-space">
|
|
<?php $odd = false; ?>
|
|
@foreach($history['changesets'] as $revision => $changes)
|
|
<li @if($odd) class="timeline-inverted" @endif>
|
|
<?php $odd = !$odd;?>
|
|
<div class="timeline-badge big"
|
|
style="background: url('{{\App\CMS\Helpers\Gravatar::img($history['info'][$revision]['user']['email'], 40)}}') no-repeat center center"
|
|
data-toggle="tooltip" data-placement="top"
|
|
title="{{$history['info'][$revision]['user']['name']}} {{$history['info'][$revision]['user']['email']}}"></div>
|
|
<div class="timeline-panel">
|
|
<div class="timeline-heading">
|
|
<h5 class="timeline-title">{{$revision}}
|
|
<small class="text-muted">
|
|
@date($history['info'][$revision]['changed_at'])
|
|
</small>
|
|
</h5>
|
|
</div>
|
|
<div class="timeline-body">
|
|
@foreach($changes as $change)
|
|
<p>
|
|
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
|
|
</p>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
|
|
@can('update', $page)
|
|
<a href="{{route('content.edit', ['id' => $page->id])}}" class="btn btn-primary">
|
|
@lang('admin/history.backToEdit')
|
|
</a>
|
|
@endcan
|
|
@stop
|