mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
153f76aa7c
Closes #3254, closes #3138, closes #3245 ### Settings Routing and View refactoring - Refactored `SettingsView` to handle transitions between mobile and desktop layouts - `SettingsRoute` will only transition to `settings.general` if the screen is large enough to show both the menu and the content - Added `SettingsIndexView` to handle showing the settings menu on mobile screens - Added `SettingsContentBaseView` to be inherited by any settings view that is not index. - Updated Settings templates appropriately to work with new views - Removed extraneous `active` class from `settings-content` - Changed settings menu to use `gh-activating-list-item` - Retooled settings tests ### Mobile Utils - Renamed file to `mobile.js`, since it's inside of `utils/` - Added `mobileQuery` MediaQueryList to help detect layout changes - Removed unused `hasTouchScreen`, `device.js` should be used instead. - Removed unused `smallScreen` function - Moved FastClickInit to codemirror-mobile
62 lines
2.3 KiB
Handlebars
62 lines
2.3 KiB
Handlebars
<header>
|
|
{{#link-to 'settings' class='button-back button'}}Back{{/link-to}}
|
|
<h2 class="title">Users</h2>
|
|
<section class="page-actions">
|
|
<a class="button-add" href="" {{action "openModal" "invite-new-user" this}} >New User</a>
|
|
</section>
|
|
</header>
|
|
|
|
<section class="content settings-users">
|
|
{{#if invitedUsers}}
|
|
|
|
<section class="object-list">
|
|
|
|
<h4 class="object-list-title">Invited users</h4>
|
|
|
|
{{#each invitedUsers itemController="settings/users/user"}}
|
|
<div class="object-list-item">
|
|
<span class="object-list-item-icon icon-mail">ic</span>
|
|
|
|
<div class="object-list-item-body">
|
|
<span class="name">{{email}}</span><br>
|
|
<span class="description">Invitation sent: {{created_at}}</span>
|
|
</div>
|
|
<aside class="object-list-item-aside">
|
|
<a class="object-list-action" href="#" {{action "revoke"}}>Revoke</a>
|
|
<a class="object-list-action" href="#" {{action "resend"}}>Resend</a>
|
|
</aside>
|
|
</div>
|
|
{{/each}}
|
|
|
|
</section>
|
|
|
|
{{/if}}
|
|
|
|
<section class="object-list">
|
|
|
|
<h4 class="object-list-title">Active users</h4>
|
|
|
|
{{#each activeUsers itemController="settings/users/user"}}
|
|
{{#link-to 'settings.users.user' slug class="object-list-item" }}
|
|
<img class="object-list-item-figure"
|
|
src="{{unbound imageUrl}}"
|
|
alt="Photo of {{unbound name}}" />
|
|
|
|
<div class="object-list-item-body">
|
|
<span class="name">
|
|
{{user.name}}
|
|
</span>
|
|
<br>
|
|
<span class="description">Last seen: {{unbound last_login}}</span>
|
|
</div>
|
|
<!-- @TODO: replace these with real access level once API and data model are updated -->
|
|
<aside class="object-list-item-aside">
|
|
<span class="role-label editor">Editor</span>
|
|
<span class="role-label owner">Owner</span>
|
|
</aside>
|
|
{{/link-to}}
|
|
{{/each}}
|
|
|
|
</section>
|
|
</section>
|