1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 23:52:40 +01:00
BookStack/resources/views/pages/revisions.blade.php

60 lines
2.2 KiB
PHP
Raw Normal View History

2015-08-09 13:06:52 +02:00
@extends('base')
@section('content')
<div class="faded-small toolbar">
2015-08-31 12:43:28 +02:00
<div class="container">
<div class="row">
<div class="col-md-6 faded">
<div class="breadcrumbs">
<a href="{{$page->getUrl()}}" class="text-primary text-button"><i class="zmdi zmdi-arrow-left"></i>Back to page</a>
2015-08-31 12:43:28 +02:00
</div>
</div>
<div class="col-md-6 faded">
</div>
2015-08-09 13:06:52 +02:00
</div>
</div>
</div>
2015-08-31 12:43:28 +02:00
2016-07-07 20:53:43 +02:00
<div class="container medium" ng-non-bindable>
2015-08-09 13:06:52 +02:00
<h1>Page Revisions <span class="subheader">For "{{ $page->name }}"</span></h1>
@if(count($page->revisions) > 0)
<table class="table">
<tr>
2016-07-07 20:53:43 +02:00
<th width="30%">Name</th>
<th colspan="2" width="10%">Created By</th>
<th width="15%">Revision Date</th>
<th width="20%">Summary</th>
<th width="15%">Actions</th>
2015-08-09 13:06:52 +02:00
</tr>
@foreach($page->revisions as $revision)
<tr>
<td>{{$revision->name}}</td>
<td style="line-height: 0;">
@if($revision->createdBy)
<img class="avatar" src="{{ $revision->createdBy->getAvatar(30) }}" alt="{{$revision->createdBy->name}}">
@endif
</td>
<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>
2016-07-07 20:53:43 +02:00
<td>{{$revision->summary}}</td>
2015-08-09 13:06:52 +02:00
<td>
<a href="{{$revision->getUrl()}}" target="_blank">Preview</a>
<span class="text-muted">&nbsp;|&nbsp;</span>
<a href="{{$revision->getUrl()}}/restore">Restore</a>
</td>
</tr>
@endforeach
</table>
@else
<p>This page has no revisions.</p>
@endif
</div>
@stop