mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
c5535e0a1b
No issue - fixed "{{#each}}" helper in templates to use block syntax - fixed deprecated ember.controller getter/setter function to use new syntax - removed unnecessary pass-protect route view
65 lines
2.7 KiB
Handlebars
65 lines
2.7 KiB
Handlebars
<header class="view-header">
|
|
<h1 class="view-title">Team</h1>
|
|
<section class="view-actions">
|
|
<button class="btn btn-green" {{action "openModal" "invite-new-user"}} >Invite People</button>
|
|
</section>
|
|
</header>
|
|
|
|
{{#view "users-list"}}
|
|
{{#if invitedUsers}}
|
|
<section class="user-list invited-users">
|
|
|
|
<h4 class="user-list-title">Invited users</h4>
|
|
|
|
{{#each invitedUsers itemController="settings/users/user" as |user|}}
|
|
<div class="user-list-item">
|
|
<span class="user-list-item-icon icon-mail">ic</span>
|
|
|
|
<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}}
|
|
|
|
<section class="user-list active-users">
|
|
|
|
<h4 class="user-list-title">Active users</h4>
|
|
|
|
{{#each activeUsers itemController="settings/users/user" as |user|}}
|
|
{{#link-to 'settings.users.user' user.model class="user-list-item" }}
|
|
<span class="user-list-item-figure" style={{user.userImageBackground}}>
|
|
<span class="hidden">Photo of {{user.model.name}}</span>
|
|
</span>
|
|
|
|
<div class="user-list-item-body">
|
|
<span class="name">
|
|
{{user.model.name}}
|
|
</span>
|
|
<br>
|
|
<span class="description">Last seen: {{user.last_login}}</span>
|
|
</div>
|
|
<aside class="user-list-item-aside">
|
|
{{#unless user.model.isAuthor}}
|
|
{{#each user.model.roles as |role|}}
|
|
<span class="role-label {{role.lowerCaseName}}">{{role.name}}</span>
|
|
{{/each}}
|
|
{{/unless}}
|
|
</aside>
|
|
{{/link-to}}
|
|
{{/each}}
|
|
|
|
</section>
|
|
{{/view}}
|