added a revisions page

This commit is contained in:
2018-08-16 21:17:32 +02:00
parent a69c3e6cf6
commit 34e432fe87
11 changed files with 154 additions and 35 deletions
+16 -6
View File
@@ -6,17 +6,14 @@
/** @var \App\Models\Table $table */
@endphp
@section('content')
<div class="row justify-content-start px-3">
<div class="d-flex w-100 align-items-center" id="table-title-container">
<small class="flex-grow-1" style="font-size: 120%;" id="table-id">
<a href="{{route('profile.view', $table->owner->name)}}" class="link-no-color">{{ $table->owner->handle }}</a>{{--
--}}<span class="px-1">/</span>{{--
--}}<b>{{ $table->name }}</b>
</small>
@include('table._header-handle')
<h1 class="mx-3" id="table-title">{{ $table->title }}</h1>
@include('table._view-action-buttons')
</div>
</div>
@@ -65,6 +62,19 @@
</div>{{-- End of row --}}
@if($table->revisions_count != $revisionNum)
<div class="alert alert-warning alert-important" role="alert" >
<button type="button"
class="close"
data-dismiss="alert"
aria-hidden="true"
>&times;</button>
You're viewing an old table revision ({{$revisionNum}} out of {{ $table->revisions_count }}).
<a href="{{ $table->viewRoute }}">Go to current</a>
</div>
@endif
<div class="row justify-content-center mb-2">
<div class="col-md-12 d-flex">
<nav class="text-center" aria-label="Pages of the table">