{{t "Staff users"}}

{{!-- Do not show Invite user button to authors --}} {{#unless this.currentUser.isAuthorOrContributor}}
{{/unless}}
{{#if this.showInviteUserModal}} {{/if}}
{{!-- Show invited users to everyone except authors --}} {{!-- LLIUREX Hide content {{#unless this.currentUser.isAuthorOrContributor}} {{#if this.invites}}
{{t "Invited users"}}
{{#each this.sortedInvites as |invite|}}
{{svg-jar "email"}}ic

{{invite.email}}

{{#if invite.pending}} {{t "Invitation not sent - please try again"}} {{else}} {{t "Invitation sent: {at}" at=component.createdAt}}, {{if component.isExpired (t "expired") (t "expires {at}" at=component.expiresAt)}} {{/if}}

{{#if component.isSending}} {{t "Sending Invite..."}} {{else}} {{t "Revoke"}} {{t "Resend"}} {{invite.role.name}} {{/if}}
{{/each}}
{{/if}} {{/unless}} LLIUREX --}}
{{t "Active users"}}
{{!-- For authors/contributors, only show their own user --}} {{#if this.currentUser.isAuthorOrContributor}} {{else}} {{#vertical-collection this.sortedActiveUsers key="id" containerSelector=".gh-main" estimateHeight=75 as |user| }} {{/vertical-collection}} {{/if}}
{{!-- Don't show if we have no suspended users or logged in as an author --}} {{#if (and this.suspendedUsers (not this.currentUser.isAuthorOrContributor))}}
{{t "Suspended users"}}
{{#each this.sortedSuspendedUsers key="id" as |user|}} {{/each}}
{{/if}}