{{#if post}} {{#gh-editor tagName="section" class="gh-editor gh-view" as |editor| }}
{{#if ui.isFullScreen}}
{{#link-to (pluralize post.displayName) classNames="blue link fw4 flex items-center" data-test-link=(pluralize post.displayName)}} {{svg-jar "arrow-left" class="w3 fill-blue mr1 nudge-right--2"}} {{capitalize (pluralize post.displayName)}} {{/link-to}}
{{/if}}
{{gh-editor-post-status post=post isSaving=(or autosave.isRunning saveTasks.isRunning) }} {{#gh-scheduled-post-countdown post=post as |post countdown|}} {{/gh-scheduled-post-countdown}}
{{#if infoMessage}}
{{svg-jar "idea" class="w7 h7 fill-blue"}}

{{infoMessage}}

{{/if}}
{{#unless post.isNew}} {{#if session.user.isContributor}} {{gh-task-button "Save" task=save runningText="Saving" class="gh-btn gh-btn-blue gh-btn-icon contributor-save-button" data-test-contributor-save=true}} {{else}} {{gh-publishmenu post=post postStatus=post.status saveTask=save setSaveType=(action "setSaveType") onOpen=(action "cancelAutosave")}} {{/if}} {{/unless}}
{{!-- gh-koenig-editor acts as a wrapper around the title input and koenig editor canvas to support Ghost-specific editor behaviour --}} {{gh-koenig-editor title=(readonly post.titleScratch) titlePlaceholder=(concat (capitalize post.displayName) " Title") onTitleChange=(action "updateTitleScratch") onTitleBlur=(action (perform saveTitle)) body=(readonly post.scratch) bodyPlaceholder=(concat "Begin writing your " post.displayName "...") bodyAutofocus=shouldFocusEditor onBodyChange=(action "updateScratch") headerOffset=editor.headerHeight scrollContainerSelector=".gh-koenig-editor" scrollOffsetTopSelector=".gh-editor-header-small" scrollOffsetBottomSelector=".gh-mobile-nav-bar" onEditorCreated=(action "setKoenigEditor") onWordCountChange=(action "updateWordCount") }}
{{pluralize wordCount.wordCount "word"}}
{{svg-jar "help" class="w4 h4 stroke-midgrey-l2"}}
{{/gh-editor}} {{#if showDeletePostModal}} {{gh-fullscreen-modal "delete-post" model=(hash post=post onSuccess=(route-action 'redirectToContentScreen')) close=(action "toggleDeletePostModal") modifier="action wide"}} {{/if}} {{#if showLeaveEditorModal}} {{gh-fullscreen-modal "leave-editor" confirm=(action "leaveEditor") close=(action "toggleLeaveEditorModal") modifier="action wide"}} {{/if}} {{#if showReAuthenticateModal}} {{gh-fullscreen-modal "re-authenticate" close=(action "toggleReAuthenticateModal") modifier="action wide"}} {{/if}} {{#liquid-wormhole}} {{gh-post-settings-menu post=post showSettingsMenu=ui.showSettingsMenu deletePost=(action "toggleDeletePostModal") updateSlug=updateSlug savePost=savePost }} {{/liquid-wormhole}} {{/if}} {{outlet}}