1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Updated page revisions link visibility

To match the actual visibilities of the revisions listing page and
options.
Related to #2946
This commit is contained in:
Dan Brown
2022-09-03 12:32:21 +01:00
parent 9158a66bff
commit 2fe261e207
4 changed files with 27 additions and 7 deletions

View File

@ -10,9 +10,9 @@
@endif
@if ($entity->isA('page'))
@if (userCan('page-update', $entity)) <a href="{{ $entity->getUrl('/revisions') }}" class="entity-meta-item"> @else <div class="entity-meta-item"> @endif
@icon('history'){{ trans('entities.meta_revision', ['revisionCount' => $entity->revision_count]) }}
@if (userCan('page-update', $entity))</a> @else </div> @endif
<a href="{{ $entity->getUrl('/revisions') }}" class="entity-meta-item">
@icon('history'){{ trans('entities.meta_revision', ['revisionCount' => $entity->revision_count]) }}
</a>
@endif
@if ($entity->ownedBy && $entity->owned_by !== $entity->created_by)