diff --git a/ghost/admin/app/components/editor/modals/update-flow.hbs b/ghost/admin/app/components/editor/modals/update-flow.hbs index 8f29e51f0b..f69debb025 100644 --- a/ghost/admin/app/components/editor/modals/update-flow.hbs +++ b/ghost/admin/app/components/editor/modals/update-flow.hbs @@ -4,9 +4,13 @@ {{svg-jar "arrow-left"}} Editor
- + {{#let @data.publishOptions.post as |post|}} + {{#if (not (and post.isSent (not post.isPublished)))}} + + {{/if}} + {{/let}}
diff --git a/ghost/admin/app/components/editor/publish-buttons.hbs b/ghost/admin/app/components/editor/publish-buttons.hbs new file mode 100644 index 0000000000..3440aa5d56 --- /dev/null +++ b/ghost/admin/app/components/editor/publish-buttons.hbs @@ -0,0 +1,72 @@ +{{#if @publishManagement.publishOptions.user.isContributor}} + {{#if @publishManagement.post.isDraft}} + + {{/if}} + + +{{else}} + {{#if @publishManagement.post.isDraft}} + + + + {{else}} + + + {{#if (not (and @publishManagement.post.isSent (not @publishManagement.post.isPublished)))}} + + {{/if}} + {{/if}} +{{/if}} \ No newline at end of file diff --git a/ghost/admin/app/components/editor/publish-management.hbs b/ghost/admin/app/components/editor/publish-management.hbs index 987e908da3..b584bdbabe 100644 --- a/ghost/admin/app/components/editor/publish-management.hbs +++ b/ghost/admin/app/components/editor/publish-management.hbs @@ -1,67 +1,11 @@ -{{#if this.publishOptions.user.isContributor}} - {{#if @post.isDraft}} - - {{/if}} - - -{{else}} - {{#if @post.isDraft}} - - - - {{else}} - {{#if (or @hasUnsavedChanges this.saveButtonTaskGroup.isRunning)}} - - {{/if}} - - - {{/if}} -{{/if}} \ No newline at end of file +{{yield (hash + post=@post + publishOptions=this.publishOptions + openPreview=this.openPreview + togglePreview=this.togglePreview + saveTask=this.saveTask + saveButtonTaskGroup=this.saveButtonTaskGroup + hasUnsavedChanges=@hasUnsavedChanges + openPublishFlow=this.openPublishFlow + openUpdateFlow=this.openUpdateFlow +)}} diff --git a/ghost/admin/app/components/gh-editor-post-status.hbs b/ghost/admin/app/components/gh-editor-post-status.hbs index 5cbd0fb6a3..9a96bcd3bf 100644 --- a/ghost/admin/app/components/gh-editor-post-status.hbs +++ b/ghost/admin/app/components/gh-editor-post-status.hbs @@ -1,8 +1,10 @@ -
+{{!-- template-lint-disable no-invalid-interactive --}} +
{{#if (and this.isSaving @post.isDraft)}} Saving... {{else if @post.isSent}} - Sent to {{gh-pluralize @post.email.emailCount "member"}} + + to {{gh-pluralize @post.email.emailCount "member"}} {{else if (and @post.emailOnly @post.isScheduled)}} Scheduled {{#if this.isHovered}} diff --git a/ghost/admin/app/styles/app-dark.css b/ghost/admin/app/styles/app-dark.css index 6aee28ca69..14f533d409 100644 --- a/ghost/admin/app/styles/app-dark.css +++ b/ghost/admin/app/styles/app-dark.css @@ -1206,4 +1206,8 @@ kbd { .gh-dashboard-tooltip { background: var(--whitegrey); +} + +.gh-editor-post-status-btn::after { + background: var(--hairline-color-2); } \ No newline at end of file diff --git a/ghost/admin/app/styles/layouts/editor.css b/ghost/admin/app/styles/layouts/editor.css index 16ec8c3e42..71a5b440ea 100644 --- a/ghost/admin/app/styles/layouts/editor.css +++ b/ghost/admin/app/styles/layouts/editor.css @@ -625,6 +625,21 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone { border-radius: 3px; } +.gh-editor-post-status-btn { + position: relative; +} + +.gh-editor-post-status-btn::after { + position: absolute; + content: ""; + display: block; + bottom: 6px; + left: 0; + right: 0; + height: 1px; + background: var(--lightgrey); +} + .gh-editor-save-trigger { margin-right: 8px; } diff --git a/ghost/admin/app/templates/editor.hbs b/ghost/admin/app/templates/editor.hbs index 1e3fb16489..9a859e3ea3 100644 --- a/ghost/admin/app/templates/editor.hbs +++ b/ghost/admin/app/templates/editor.hbs @@ -6,41 +6,45 @@ as |editor| >
-
- {{#if this.ui.isFullScreen}} - + +
+ {{#if this.ui.isFullScreen}} + + + {{svg-jar "arrow-left"}} + {{capitalize (pluralize this.post.displayName)}} + + + {{/if}} +
- {{svg-jar "arrow-left"}} - {{capitalize (pluralize this.post.displayName)}} + - - {{/if}} -
- - - +
-
-
- {{#unless this.post.isNew}} - +
+ {{#unless this.post.isNew}} + - {{#unless this.showSettingsMenu}} -
+ {{#unless this.showSettingsMenu}} +
+ {{/unless}} {{/unless}} - {{/unless}} -
+
+
{{!--