diff --git a/ghost/admin/mixins/editor-base-controller.js b/ghost/admin/mixins/editor-base-controller.js
index 5a4cd7c2bb..6297e414bf 100644
--- a/ghost/admin/mixins/editor-base-controller.js
+++ b/ghost/admin/mixins/editor-base-controller.js
@@ -50,6 +50,10 @@ EditorControllerMixin = Ember.Mixin.create(MarkerManager, {
return this.get('model.tags').mapBy('name');
}),
+ postOrPage: Ember.computed('model.page', function () {
+ return this.get('model.page') ? 'Page' : 'Post';
+ }),
+
// compares previousTagNames to tagNames
tagNamesEqual: function () {
var tagNames = this.get('tagNames'),
@@ -191,7 +195,7 @@ EditorControllerMixin = Ember.Mixin.create(MarkerManager, {
path = this.get('ghostPaths.url').join(this.get('config.blogUrl'), this.get('model.url'));
if (status === 'published') {
- message += ' View Post';
+ message += ' View ' + this.get('postOrPage') + '';
}
this.notifications.showSuccess(message, {delayed: delay});
},
diff --git a/ghost/admin/templates/editor-save-button.hbs b/ghost/admin/templates/editor-save-button.hbs
index 1377b6cebf..13ed2872cc 100644
--- a/ghost/admin/templates/editor-save-button.hbs
+++ b/ghost/admin/templates/editor-save-button.hbs
@@ -13,7 +13,7 @@
- Delete Post
+ {{view.deleteText}}
{{/gh-dropdown}}
diff --git a/ghost/admin/views/editor-save-button.js b/ghost/admin/views/editor-save-button.js
index a73f7221a9..515ecf0a9f 100644
--- a/ghost/admin/views/editor-save-button.js
+++ b/ghost/admin/views/editor-save-button.js
@@ -8,14 +8,18 @@ var EditorSaveButtonView = Ember.View.extend({
return this.get('controller.model.isPublished') !== this.get('controller.willPublish');
}),
- publishText: Ember.computed('controller.model.isPublished', function () {
- return this.get('controller.model.isPublished') ? 'Update Post' : 'Publish Now';
+ publishText: Ember.computed('controller.model.isPublished', 'controller.pageOrPost', function () {
+ return this.get('controller.model.isPublished') ? 'Update ' + this.get('controller.postOrPage') : 'Publish Now';
}),
draftText: Ember.computed('controller.model.isPublished', function () {
return this.get('controller.model.isPublished') ? 'Unpublish' : 'Save Draft';
}),
+ deleteText: Ember.computed('controller.postOrPage', function () {
+ return 'Delete ' + this.get('controller.postOrPage');
+ }),
+
saveText: Ember.computed('controller.willPublish', function () {
return this.get('controller.willPublish') ? this.get('publishText') : this.get('draftText');
})