From fe7805c0cf5db1d865b587c15b77fd026a994658 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Wed, 6 Aug 2014 02:07:32 +0300 Subject: [PATCH] New publish button markup implementation --- ghost/admin/templates/-publish-bar.hbs | 26 +++++++++----------- ghost/admin/templates/editor-save-button.hbs | 11 ++++----- ghost/admin/views/editor-save-button.js | 3 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/ghost/admin/templates/-publish-bar.hbs b/ghost/admin/templates/-publish-bar.hbs index c8f1819b29..bf1dc2eb8e 100644 --- a/ghost/admin/templates/-publish-bar.hbs +++ b/ghost/admin/templates/-publish-bar.hbs @@ -1,19 +1,17 @@ diff --git a/ghost/admin/templates/editor-save-button.hbs b/ghost/admin/templates/editor-save-button.hbs index c9f45161a3..4dcce1acf5 100644 --- a/ghost/admin/templates/editor-save-button.hbs +++ b/ghost/admin/templates/editor-save-button.hbs @@ -1,9 +1,8 @@ - -{{#gh-popover-button popoverName="post-save-menu" classNameBindings="open:active :options :up" title="Post Settings"}} - -{{/gh-popover-button}} + +{{#gh-popover-button popoverName="post-save-menu" classNameBindings=":btn :btn-sm view.isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"}} + + Toggle Settings Menu +{{/gh-popover-button}} {{#gh-popover name="post-save-menu" closeOnClick="true" tagName="ul" classNames="editor-options overlay" publishTextBinding="view.publish-text" draftTextBinding="view.draft-text"}}
  • {{view.publishText}} diff --git a/ghost/admin/views/editor-save-button.js b/ghost/admin/views/editor-save-button.js index f3e1dabb73..170224ee72 100644 --- a/ghost/admin/views/editor-save-button.js +++ b/ghost/admin/views/editor-save-button.js @@ -1,8 +1,7 @@ var EditorSaveButtonView = Ember.View.extend({ templateName: 'editor-save-button', tagName: 'section', - classNames: ['js-publish-splitbutton'], - classNameBindings: ['isDangerous:splitbutton-delete:splitbutton-save'], + classNames: ['splitbtn js-publish-splitbutton'], //Tracks whether we're going to change the state of the post on save isDangerous: function () {