added a revisions page
This commit is contained in:
@@ -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"
|
||||
>×</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">
|
||||
|
||||
Reference in New Issue
Block a user