Ghost/ghost/admin/app/templates/components/gh-editor-save-button.hbs
Hannah Wolfe b2c11d587d Spin button consistency
refs #5652

- always put button text inside opening/closing helper tag
- only include type if it is 'submit' as button is default
- wrap attributes in double quotes
2015-08-26 16:21:42 +01:00

23 lines
1.1 KiB
Handlebars

{{#gh-spin-button type="button" classNameBindings=":btn :btn-sm :js-publish-button isDangerous:btn-red:btn-blue" action="save" submitting=submitting}}{{saveText}}{{/gh-spin-button}}
{{#gh-dropdown-button dropdownName="post-save-menu" classNameBindings=":btn :btn-sm isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"}}
<i class="options icon-arrow2"></i>
<span class="sr-only">Toggle Settings Menu</span>
{{/gh-dropdown-button}}
{{#gh-dropdown name="post-save-menu" closeOnClick="true" classNames="editor-options"}}
<ul class="dropdown-menu dropdown-triangle-bottom-right">
<li class="post-save-publish {{if willPublish 'active'}}">
<a {{action "setSaveType" "publish"}} href="#">{{publishText}}</a>
</li>
<li class="post-save-draft {{unless willPublish 'active'}}">
<a {{action "setSaveType" "draft"}} href="#">{{draftText}}</a>
</li>
{{#unless isNew}}
<li class="divider delete"></li>
<li class="delete">
<a {{action "delete"}} href="#">{{deleteText}}</a>
</li>
{{/unless}}
</ul>
{{/gh-dropdown}}