mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
08da18e324
Refs https://www.notion.so/ghost/Switch-breadcrumb-style-513a624c0e0d490ca39a2fdb97a6971a - New breadcrumb style broke posts list on smaller screens - Updated copy to reflect the action taken on the page (e.g. Edit tag)
93 lines
3.7 KiB
Handlebars
93 lines
3.7 KiB
Handlebars
<section class="gh-canvas">
|
|
<GhCanvasHeader class="gh-canvas-header sticky gh-member-header">
|
|
<div class="flex flex-column">
|
|
<div class="gh-canvas-breadcrumb">
|
|
<LinkTo @route="members" data-test-link="members-back">
|
|
Members
|
|
</LinkTo>
|
|
{{svg-jar "arrow-right-small"}} {{if this.member.isNew "New member" "Edit member"}}
|
|
</div>
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
{{#if this.member.isNew}}
|
|
New<span class="gh-canvas-title-hide-for-mobile"> member</span>
|
|
{{else}}
|
|
{{or this.member.name this.member.email}}
|
|
{{/if}}
|
|
</h2>
|
|
</div>
|
|
|
|
<section class="view-actions">
|
|
{{#if this.session.user.isAdmin}}
|
|
{{#unless this.member.isNew}}
|
|
<span class="dropdown">
|
|
<GhDropdownButton
|
|
@dropdownName="members-actions-menu"
|
|
@classNames="gh-btn gh-btn-icon icon-only gh-btn-action-icon"
|
|
@title="Members Actions"
|
|
>
|
|
<span>
|
|
{{svg-jar "settings"}}
|
|
<span class="hidden">Actions</span>
|
|
</span>
|
|
</GhDropdownButton>
|
|
<GhDropdown
|
|
@name="members-actions-menu"
|
|
@tagName="ul"
|
|
@classNames="gh-member-actions-menu dropdown-menu dropdown-triangle-top-right"
|
|
>
|
|
<li>
|
|
<button
|
|
class="mr2" type="button" {{on "click" this.toggleImpersonateMemberModal}}>
|
|
<span>Impersonate</span>
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button
|
|
type="button"
|
|
class="mr2"
|
|
{{on "click" this.confirmDeleteMember}}
|
|
data-test-button="delete-member"
|
|
>
|
|
<span class="red">Delete member</span>
|
|
</button>
|
|
</li>
|
|
</GhDropdown>
|
|
</span>
|
|
{{/unless}}
|
|
{{/if}}
|
|
|
|
<GhTaskButton @class="gh-btn gh-btn-primary gh-btn-icon" @type="button" @task={{this.saveTask}} @data-test-button="save" />
|
|
</section>
|
|
</GhCanvasHeader>
|
|
|
|
<div>
|
|
<form class="member-basic-info-form">
|
|
<GhMemberSettingsForm
|
|
@member={{this.member}}
|
|
@scratchMember={{this.scratchMember}}
|
|
@setProperty={{this.setProperty}}
|
|
@onLabelEdit={{this.editLabel}}
|
|
@saveMember={{this.save}}
|
|
@isSaveRunning={{this.saveTask.isRunning}}
|
|
@isLoading={{this.isLoading}} />
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
{{#if this.showImpersonateMemberModal}}
|
|
<GhFullscreenModal
|
|
@modal="impersonate-member"
|
|
@model={{this.member}}
|
|
@close={{this.toggleImpersonateMemberModal}}
|
|
@modifier="action wide" />
|
|
{{/if}}
|
|
|
|
{{#if this.showLabelModal}}
|
|
<GhFullscreenModal
|
|
@modal="members-label-form"
|
|
@model={{this.labelModalData}}
|
|
@close={{this.toggleLabelModal}}
|
|
@modifier="action wide"
|
|
/>
|
|
{{/if}}
|