FEATURE: make history overview nicer
This commit is contained in:
+1
-1
@@ -14260,7 +14260,7 @@ img {
|
|||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline > li {
|
.timeline:not(.more-space) > li {
|
||||||
margin-top: -25px;
|
margin-top: -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,30 +4,35 @@
|
|||||||
@section('pageDescription', $page->meta_description)
|
@section('pageDescription', $page->meta_description)
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div id="accordion" role="tablist" aria-multiselectable="true">
|
<ul class="timeline more-space">
|
||||||
|
<?php $odd = false; ?>
|
||||||
@foreach($history['changesets'] as $revision => $changes)
|
@foreach($history['changesets'] as $revision => $changes)
|
||||||
<div class="panel panel-default">
|
<li @if($odd) class="timeline-inverted" @endif>
|
||||||
<div class="panel-heading" role="tab" id="heading-{{$revision}}">
|
<?php $odd = !$odd;?>
|
||||||
<h6 class="panel-title">
|
<div class="timeline-badge big"
|
||||||
<a class="collapsed" data-toggle="collapse" data-parent="#accordion"
|
style="background: url('{{\App\Helpers\Gravatar::img($history['info'][$revision]['user']['email'], 40)}}') no-repeat center center"
|
||||||
href="#revision-{{$revision}}" aria-expanded="false" aria-controls="revision-{{$revision}}">
|
data-toggle="tooltip" data-placement="top"
|
||||||
<strong>{{$history['info'][$revision]['user']['name']}}</strong> |
|
title="{{$history['info'][$revision]['user']['name']}} {{$history['info'][$revision]['user']['email']}}"></div>
|
||||||
@date($history['info'][$revision]['changed_at']) |
|
<div class="timeline-panel">
|
||||||
{{trans_choice('admin/history.numOfChanges', count($changes))}}
|
<div class="timeline-heading">
|
||||||
</a>
|
<h5 class="timeline-title">{{$revision}}
|
||||||
</h6>
|
<small class="text-muted">
|
||||||
|
@date($history['info'][$revision]['changed_at'])
|
||||||
|
</small>
|
||||||
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
<div id="revision-{{$revision}}" class="panel-collapse collapse" role="tabpanel"
|
<div class="timeline-body">
|
||||||
aria-labelledby="heading-{{$revision}}">
|
|
||||||
@foreach($changes as $change)
|
@foreach($changes as $change)
|
||||||
<div class="accordion-content" data-tab-content>
|
<p>
|
||||||
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
|
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
|
||||||
</div>
|
</p>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</ul>
|
||||||
|
|
||||||
<a href="{{route('content.edit', ['id' => $page->id])}}" class="btn btn-primary">
|
<a href="{{route('content.edit', ['id' => $page->id])}}" class="btn btn-primary">
|
||||||
@lang('admin/history.backToEdit')
|
@lang('admin/history.backToEdit')
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user