mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
Revisions: Hid changes link for oldest revision
Just as a UX improvement to help avoid confusion, as the whole content will be changes for this revision. For #5454
This commit is contained in:
@@ -27,8 +27,10 @@
|
||||
{{ $revision->summary }}
|
||||
</div>
|
||||
<div class="flex-2 px-m py-xs actions text-small text-l-right min-width-l">
|
||||
<a href="{{ $revision->getUrl('changes') }}" target="_blank" rel="noopener">{{ trans('entities.pages_revisions_changes') }}</a>
|
||||
<span class="text-muted opacity-70"> | </span>
|
||||
@if(!$oldest)
|
||||
<a href="{{ $revision->getUrl('changes') }}" target="_blank" rel="noopener">{{ trans('entities.pages_revisions_changes') }}</a>
|
||||
<span class="text-muted opacity-70"> | </span>
|
||||
@endif
|
||||
|
||||
|
||||
@if ($current)
|
||||
|
@@ -37,7 +37,11 @@
|
||||
<div class="flex-2 px-m py-xs text-right">{{ trans('common.actions') }}</div>
|
||||
</div>
|
||||
@foreach($revisions as $index => $revision)
|
||||
@include('pages.parts.revisions-index-row', ['revision' => $revision, 'current' => $page->revision_count === $revision->revision_number])
|
||||
@include('pages.parts.revisions-index-row', [
|
||||
'revision' => $revision,
|
||||
'current' => $page->revision_count === $revision->revision_number,
|
||||
'oldest' => $oldestRevisionId === $revision->id,
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
|
Reference in New Issue
Block a user