{{#gh-view-title openMobileMenu="openMobileMenu"}}Team{{/gh-view-title}} {{!-- Do not show Invite user button to authors --}} {{#unless session.user.isAuthor}}
{{/unless}}
{{#gh-infinite-scroll fetch="loadNextPage" isLoading=isLoading tagName="section" classNames="view-content team" }} {{!-- Do not show invited users to authors --}} {{#unless session.user.isAuthor}} {{#if invitedUsers}}

Invited users

{{#each invitedUsers as |user|}} {{#gh-user-invited user=user reload="reload" as |component|}}
ic
{{user.email}}
{{#if user.pending}} Invitation not sent - please try again {{else}} Invitation sent: {{component.createdAt}} {{/if}}
{{/gh-user-invited}} {{/each}}
{{/if}} {{/unless}}

Active users

{{#each activeUsers key="id" as |user|}} {{!-- For authors only shows users as a list, otherwise show users with links to user page --}} {{#unless session.user.isAuthor}} {{#gh-user-active user=user as |component|}} {{#link-to 'team.user' user class="user-list-item"}} {{partial 'user-list-item'}} {{/link-to}} {{/gh-user-active}} {{else}} {{#gh-user-active user=user as |component|}}
  • {{partial 'user-list-item'}}
  • {{/gh-user-active}} {{/unless}} {{/each}}
    {{/gh-infinite-scroll}}