{{#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|}} {{capitalize post.displayName}} will go live {{countdown}}. {{/gh-scheduled-post-countdown}} {{#if infoMessage}} {{svg-jar "idea" class="w7 h7 fill-blue"}} {{infoMessage}} Got it {{/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}} {{svg-jar "settings"}} {{!-- 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") }}
{{infoMessage}} Got it