FEATURE #1373: add history of content
This commit contains only core funcionality of displaying history. Module settings must be implemented in each module.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/history.diffPageName', ['column' => $columnName]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/history.diffPageName', ['column' => $columnName])</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row callout">
|
||||
{!! $diff !!}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<a href="{{route('content.history', ['id' => $change->content_id])}}" class="button success">
|
||||
@lang('admin/history.backToOverview')
|
||||
</a>
|
||||
</div>
|
||||
@stop
|
||||
@@ -0,0 +1,31 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/history.pageName', ['name' => $page->title]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/history.pageName', ['name' => $page->title])</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<ul class="accordion" data-accordion>
|
||||
@foreach($history['changesets'] as $revision => $changes)
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a class="accordion-title">
|
||||
<strong>{{$history['info'][$revision]['user']['name']}}</strong> |
|
||||
{{$history['info'][$revision]['changed_at']}} |
|
||||
{{trans_choice('admin/history.numOfChanges', count($changes))}}
|
||||
</a>
|
||||
|
||||
@foreach($changes as $change)
|
||||
<div class="accordion-content" data-tab-content>
|
||||
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
|
||||
</div>
|
||||
@endforeach
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@stop
|
||||
Reference in New Issue
Block a user