2014-12-21 22:05:55 +00:00
|
|
|
{{#view "settings/users/users-list-view" class="users-list-wrapper js-users-list-view"}}
|
2014-10-16 15:28:51 +00:00
|
|
|
<header class="settings-view-header user-list-header">
|
2014-12-23 10:35:49 +00:00
|
|
|
{{#if session.user.isEditor}}
|
|
|
|
{{#link-to "content" class="btn btn-default btn-back"}}Back{{/link-to}}
|
|
|
|
{{else}}
|
|
|
|
{{#link-to "settings" class="btn btn-default btn-back"}}Back{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
|
2014-10-16 15:28:51 +00:00
|
|
|
<h2 class="page-title">Users</h2>
|
|
|
|
<section class="page-actions">
|
|
|
|
<button class="btn btn-green" {{action "openModal" "invite-new-user"}} >New User</button>
|
|
|
|
</section>
|
|
|
|
</header>
|
|
|
|
|
2014-11-04 22:00:32 +00:00
|
|
|
<section class="content settings-users">
|
|
|
|
|
2014-07-06 16:56:29 +01:00
|
|
|
{{#if invitedUsers}}
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<section class="user-list invited-users">
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<h4 class="user-list-title">Invited users</h4>
|
2014-07-06 16:56:29 +01:00
|
|
|
|
2014-12-05 21:54:42 +00:00
|
|
|
{{#each user in invitedUsers itemController="settings/users/user"}}
|
2014-10-13 22:43:03 +01:00
|
|
|
<div class="user-list-item">
|
|
|
|
<span class="user-list-item-icon icon-mail">ic</span>
|
2014-07-06 16:56:29 +01:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<div class="user-list-item-body">
|
2014-12-05 21:54:42 +00:00
|
|
|
<span class="name">{{user.email}}</span><br>
|
|
|
|
{{#if user.pending}}
|
2014-07-19 01:58:27 +01:00
|
|
|
<span class="red">Invitation not sent - please try again</span>
|
|
|
|
{{else}}
|
2014-12-05 21:54:42 +00:00
|
|
|
<span class="description">Invitation sent: {{user.created_at}}</span>
|
2014-07-19 01:58:27 +01:00
|
|
|
{{/if}}
|
2014-07-06 16:56:29 +01:00
|
|
|
</div>
|
2014-10-13 22:43:03 +01:00
|
|
|
<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>
|
2014-07-06 16:56:29 +01:00
|
|
|
</aside>
|
2014-07-01 23:44:39 -04:00
|
|
|
</div>
|
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>
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-07-06 16:56:29 +01:00
|
|
|
{{/if}}
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<section class="user-list active-users">
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<h4 class="user-list-title">Active users</h4>
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-12-05 21:54:42 +00:00
|
|
|
{{#each user in activeUsers itemController="settings/users/user"}}
|
|
|
|
{{#link-to 'settings.users.user' user class="user-list-item" }}
|
|
|
|
<span class="user-list-item-figure" {{bind-attr style=user.image}}>
|
|
|
|
<span class="hidden">Photo of {{unbound user.name}}</span>
|
2014-07-22 20:13:30 +01:00
|
|
|
</span>
|
2014-07-01 23:44:39 -04:00
|
|
|
|
2014-10-13 22:43:03 +01:00
|
|
|
<div class="user-list-item-body">
|
2014-07-06 16:56:29 +01:00
|
|
|
<span class="name">
|
2014-12-05 21:54:42 +00:00
|
|
|
{{user.name}}
|
2014-07-06 16:56:29 +01:00
|
|
|
</span>
|
2014-07-01 23:44:39 -04:00
|
|
|
<br>
|
2014-12-05 21:54:42 +00:00
|
|
|
<span class="description">Last seen: {{unbound user.last_login}}</span>
|
2014-07-01 23:44:39 -04:00
|
|
|
</div>
|
2014-10-13 22:43:03 +01:00
|
|
|
<aside class="user-list-item-aside">
|
2014-12-05 21:54:42 +00:00
|
|
|
{{#unless user.isAuthor}}
|
|
|
|
{{#each role in user.roles}}
|
|
|
|
<span class="role-label {{unbound role.lowerCaseName}}">{{role.name}}</span>
|
2014-07-29 01:50:34 -04:00
|
|
|
{{/each}}
|
|
|
|
{{/unless}}
|
2014-07-01 23:44:39 -04:00
|
|
|
</aside>
|
2014-07-06 16:56:29 +01:00
|
|
|
{{/link-to}}
|
2014-07-01 23:44:39 -04:00
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
</section>
|
2014-11-04 22:00:32 +00:00
|
|
|
|
|
|
|
</section>{{! .content settings-users }}
|
|
|
|
|
2014-07-20 12:42:03 -04:00
|
|
|
{{/view}}
|