2015-05-12 12:09:45 +01:00
|
|
|
<header class="view-header">
|
2015-05-27 16:39:56 +02:00
|
|
|
{{#gh-view-title openMobileMenu="openMobileMenu"}}Team{{/gh-view-title}}
|
2015-05-12 12:09:45 +01:00
|
|
|
<section class="view-actions">
|
|
|
|
<button class="btn btn-green" {{action "openModal" "invite-new-user"}} >Invite People</button>
|
2014-10-16 15:28:51 +00:00
|
|
|
</section>
|
|
|
|
</header>
|
|
|
|
|
2015-05-25 13:17:10 -05:00
|
|
|
{{#view "users-list"}}
|
|
|
|
{{#if invitedUsers}}
|
|
|
|
<section class="user-list invited-users">
|
2014-11-04 22:00:32 +00:00
|
|
|
|
2015-05-25 13:17:10 -05:00
|
|
|
<h4 class="user-list-title">Invited users</h4>
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2015-06-18 11:59:08 +01:00
|
|
|
{{#each invitedUsers itemController="team/user" as |user|}}
|
2015-05-25 13:17:10 -05:00
|
|
|
<div class="user-list-item">
|
|
|
|
<span class="user-list-item-icon icon-mail">ic</span>
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2015-05-25 13:17:10 -05:00
|
|
|
<div class="user-list-item-body">
|
|
|
|
<span class="name">{{user.email}}</span><br>
|
|
|
|
{{#if user.model.pending}}
|
|
|
|
<span class="red">Invitation not sent - please try again</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="description">Invitation sent: {{user.model.created_at}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<aside class="user-list-item-aside">
|
|
|
|
<a class="user-list-action" href="#" {{action "revoke"}}>Revoke</a>
|
|
|
|
<a class="user-list-action" href="#" {{action "resend"}}>Resend</a>
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
2014-07-06 16:56:29 +01:00
|
|
|
|
2015-05-25 13:17:10 -05:00
|
|
|
<section class="user-list active-users">
|
|
|
|
|
|
|
|
<h4 class="user-list-title">Active users</h4>
|
|
|
|
|
2015-06-18 11:59:08 +01:00
|
|
|
{{#each activeUsers itemController="team/user" as |user|}}
|
|
|
|
{{#link-to 'team.user' user.model class="user-list-item" }}
|
2015-05-25 13:17:10 -05:00
|
|
|
<span class="user-list-item-figure" style={{user.userImageBackground}}>
|
|
|
|
<span class="hidden">Photo of {{user.model.name}}</span>
|
|
|
|
</span>
|
2014-07-06 16:56:29 +01:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<div class="user-list-item-body">
|
2015-05-25 13:17:10 -05:00
|
|
|
<span class="name">
|
|
|
|
{{user.model.name}}
|
|
|
|
</span>
|
|
|
|
<br>
|
|
|
|
<span class="description">Last seen: {{user.last_login}}</span>
|
2014-07-06 16:56:29 +01:00
|
|
|
</div>
|
2014-10-13 22:43:03 +01:00
|
|
|
<aside class="user-list-item-aside">
|
2015-05-25 13:17:10 -05:00
|
|
|
{{#unless user.model.isAuthor}}
|
2015-06-02 20:56:42 -06:00
|
|
|
{{#each user.model.roles as |role|}}
|
2015-05-25 13:17:10 -05:00
|
|
|
<span class="role-label {{role.lowerCaseName}}">{{role.name}}</span>
|
|
|
|
{{/each}}
|
|
|
|
{{/unless}}
|
2014-07-06 16:56:29 +01:00
|
|
|
</aside>
|
2015-05-25 13:17:10 -05:00
|
|
|
{{/link-to}}
|
2014-07-06 16:56:29 +01:00
|
|
|
{{/each}}
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-07-06 16:56:29 +01:00
|
|
|
</section>
|
2015-05-25 13:17:10 -05:00
|
|
|
{{/view}}
|