Added access to user activity from staff profile

refs. https://github.com/TryGhost/Toolbox/issues/356

- administrators needed a quick way to access the Audit log prefiltered for a given user from the user's staff profile page
This commit is contained in:
Peter Zimon 2022-08-23 12:15:23 +02:00
parent 4e4d1015cd
commit e06c4c3e0b

View File

@ -25,7 +25,7 @@
{{/if}}
<section class="view-actions">
{{#if this.userActionsAreVisible}}
{{#if (or this.userActionsAreVisible this.session.user.isAdmin)}}
<span class="dropdown">
<GhDropdownButton @dropdownName="user-actions-menu" @classNames="gh-btn gh-btn-white gh-btn-icon icon-only user-actions-cog" @title="User Actions" data-test-user-actions={{true}}>
<span>
@ -68,6 +68,11 @@
</li>
{{/if}}
{{/if}}
<li>
<LinkTo @route="settings.audit-log" @query={{hash user=user.id}}>
<span>View user activity</span>
</LinkTo>
</li>
</GhDropdown>
</span>
{{/if}}