2015-08-09 19:06:52 +08:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2016-02-12 06:23:19 +08:00
|
|
|
<div class="faded-small toolbar">
|
2015-08-31 18:43:28 +08:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2016-07-10 19:12:52 +08:00
|
|
|
<div class="col-sm-12 faded">
|
2015-08-31 18:43:28 +08:00
|
|
|
<div class="breadcrumbs">
|
2016-08-14 20:09:44 +08:00
|
|
|
<a href="{{ $page->book->getUrl() }}" class="text-book text-button"><i class="zmdi zmdi-book"></i>{{ $page->book->getShortName() }}</a>
|
2016-07-10 19:12:52 +08:00
|
|
|
@if($page->hasChapter())
|
|
|
|
<span class="sep">»</span>
|
|
|
|
<a href="{{ $page->chapter->getUrl() }}" class="text-chapter text-button">
|
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i>
|
2016-08-14 20:09:44 +08:00
|
|
|
{{ $page->chapter->getShortName() }}
|
2016-07-10 19:12:52 +08:00
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
<span class="sep">»</span>
|
2016-08-14 20:09:44 +08:00
|
|
|
<a href="{{ $page->getUrl() }}" class="text-page text-button"><i class="zmdi zmdi-file"></i>{{ $page->getShortName() }}</a>
|
2015-08-31 18:43:28 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-09 19:06:52 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-08-31 18:43:28 +08:00
|
|
|
|
2016-07-10 19:12:52 +08:00
|
|
|
|
|
|
|
<div class="container" ng-non-bindable>
|
2015-08-09 19:06:52 +08:00
|
|
|
<h1>Page Revisions <span class="subheader">For "{{ $page->name }}"</span></h1>
|
|
|
|
|
|
|
|
@if(count($page->revisions) > 0)
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2016-07-10 19:12:52 +08:00
|
|
|
<th width="25%">Name</th>
|
2016-07-08 02:53:43 +08:00
|
|
|
<th colspan="2" width="10%">Created By</th>
|
|
|
|
<th width="15%">Revision Date</th>
|
2016-07-10 19:12:52 +08:00
|
|
|
<th width="25%">Changelog</th>
|
2016-07-08 02:53:43 +08:00
|
|
|
<th width="15%">Actions</th>
|
2015-08-09 19:06:52 +08:00
|
|
|
</tr>
|
2016-07-10 19:12:52 +08:00
|
|
|
@foreach($page->revisions as $index => $revision)
|
2015-08-09 19:06:52 +08:00
|
|
|
<tr>
|
2016-08-14 20:09:44 +08:00
|
|
|
<td>{{ $revision->name }}</td>
|
2015-12-16 03:53:46 +08:00
|
|
|
<td style="line-height: 0;">
|
|
|
|
@if($revision->createdBy)
|
2016-08-14 20:09:44 +08:00
|
|
|
<img class="avatar" src="{{ $revision->createdBy->getAvatar(30) }}" alt="{{ $revision->createdBy->name }}">
|
2015-12-16 03:53:46 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
2016-08-14 20:09:44 +08:00
|
|
|
<td> @if($revision->createdBy) {{ $revision->createdBy->name }} @else Deleted User @endif</td>
|
|
|
|
<td><small>{{ $revision->created_at->format('jS F, Y H:i:s') }} <br> ({{ $revision->created_at->diffForHumans() }})</small></td>
|
|
|
|
<td>{{ $revision->summary }}</td>
|
2016-07-10 19:12:52 +08:00
|
|
|
@if ($index !== 0)
|
|
|
|
<td>
|
2016-08-14 20:09:44 +08:00
|
|
|
<a href="{{ $revision->getUrl() }}" target="_blank">Preview</a>
|
2016-07-10 19:12:52 +08:00
|
|
|
<span class="text-muted"> | </span>
|
2016-08-14 20:09:44 +08:00
|
|
|
<a href="{{ $revision->getUrl() }}/restore">Restore</a>
|
2016-07-10 19:12:52 +08:00
|
|
|
</td>
|
|
|
|
@else
|
|
|
|
<td><a target="_blank" href="{{ $page->getUrl() }}"><i>Current Version</i></a></td>
|
|
|
|
@endif
|
2015-08-09 19:06:52 +08:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
|
|
|
|
@else
|
|
|
|
<p>This page has no revisions.</p>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|