2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
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
|
|
|
|
2019-02-17 12:52:42 -05:00
|
|
|
<div class="my-s">
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-02-02 06:41:41 -05:00
|
|
|
$page->book,
|
|
|
|
$page->chapter,
|
|
|
|
$page,
|
2019-02-17 12:52:42 -05:00
|
|
|
$page->getUrl('/revisions') => [
|
|
|
|
'text' => trans('entities.pages_revisions'),
|
|
|
|
'icon' => 'history',
|
|
|
|
]
|
2019-02-02 06:41:41 -05:00
|
|
|
]])
|
|
|
|
</div>
|
|
|
|
|
2019-08-25 10:44:51 -04:00
|
|
|
<main class="card content-wrap">
|
2019-02-02 06:41:41 -05:00
|
|
|
<h1 class="list-heading">{{ trans('entities.pages_revisions') }}</h1>
|
2017-08-26 10:41:33 -04:00
|
|
|
|
2022-10-31 17:26:31 -04:00
|
|
|
<p class="text-muted">{{ trans('entities.pages_revisions_desc') }}</p>
|
|
|
|
|
|
|
|
<div class="flex-container-row my-m items-center justify-space-between wrap gap-x-m gap-y-s">
|
|
|
|
{{ $revisions->links() }}
|
|
|
|
<div>
|
|
|
|
@include('common.sort', $listOptions->getSortControlData())
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if(count($revisions) > 0)
|
|
|
|
<div class="item-list">
|
|
|
|
<div class="item-list-row flex-container-row items-center strong hide-under-l">
|
|
|
|
<div class="flex fit-content min-width-xxxxs px-m py-xs">{{ trans('entities.pages_revisions_number') }}</div>
|
|
|
|
<div class="flex-2 px-m py-xs">{{ trans('entities.pages_name') }} / {{ trans('entities.pages_revisions_editor') }}</div>
|
|
|
|
<div class="flex-3 px-m py-xs">{{ trans('entities.pages_revisions_created_by') }} / {{ trans('entities.pages_revisions_date') }}</div>
|
|
|
|
<div class="flex-2 px-m py-xs">{{ trans('entities.pages_revisions_changelog') }}</div>
|
|
|
|
<div class="flex-2 px-m py-xs text-right">{{ trans('common.actions') }}</div>
|
|
|
|
</div>
|
2022-08-10 12:50:35 -04:00
|
|
|
@foreach($revisions as $index => $revision)
|
2022-10-31 17:26:31 -04:00
|
|
|
@include('pages.parts.revisions-index-row', ['revision' => $revision, 'current' => $page->revision_count === $revision->revision_number])
|
2019-02-02 06:41:41 -05:00
|
|
|
@endforeach
|
2022-10-31 17:26:31 -04:00
|
|
|
</div>
|
2019-02-02 06:41:41 -05:00
|
|
|
@else
|
|
|
|
<p>{{ trans('entities.pages_revisions_none') }}</p>
|
|
|
|
@endif
|
2022-10-31 17:26:31 -04:00
|
|
|
|
|
|
|
<div class="my-m">
|
|
|
|
{{ $revisions->links() }}
|
|
|
|
</div>
|
2019-08-25 10:44:51 -04:00
|
|
|
</main>
|
2015-08-09 07:06:52 -04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|