1
0
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:
Dan Brown
2025-03-16 11:59:42 +00:00
parent 4f5ad171ac
commit dfbc78947f
4 changed files with 22 additions and 4 deletions

View File

@@ -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">&nbsp;|&nbsp;</span>
@if(!$oldest)
<a href="{{ $revision->getUrl('changes') }}" target="_blank" rel="noopener">{{ trans('entities.pages_revisions_changes') }}</a>
<span class="text-muted opacity-70">&nbsp;|&nbsp;</span>
@endif
@if ($current)

View File

@@ -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